Skip to content

Commit f477ace

Browse files
committed
[test] IRGen: Adjust FileCheck pattern for new range attribute in upstream LLVM
The attribute is `range(i8 -127, -128)`. The documentation specifies that the range can wrap, meaning that for i8 [-127, -128) is equivalent to [-127, 127). This is expected for a function that simply increments a i8 value. See https://llvm.org/docs/LangRef.html#parameter-attributes. Match it using a wildcard regex, since it is not relevant to this test. This is intended to reduce future conflicts with rebranch.
1 parent f512eb1 commit f477ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/IRGen/condfail_message.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend -primary-file %s -g -O -emit-ir | %FileCheck %s
33
// REQUIRES: optimized_stdlib
44

5-
// CHECK-LABEL: define hidden swiftcc i8 @"$s16condfail_message6testitys4Int8VADF"(i8 %0)
5+
// CHECK-LABEL: define hidden swiftcc{{.*}} i8 @"$s16condfail_message6testitys4Int8VADF"(i8 %0)
66
// CHECK: call void @llvm.trap(), !dbg [[LOC:![0-9]+]]
77

88
func testit(_ a: Int8) -> Int8 {

0 commit comments

Comments
 (0)