Skip to content

Commit ae0c54a

Browse files
committed
[rebranch][test] IRGen: Adjust check for new LLVM result value attribute
Match the attribute using a wildcard regex because it appears only under -O and is irrelevant to the test. 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 correct for a function that increments a i8. See https://llvm.org/docs/LangRef.html#parameter-attributes.
1 parent 20058f4 commit ae0c54a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/IRGen/condfail_message.swift

Lines changed: 1 addition & 1 deletion
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)