Skip to content

Commit 3e3ac8a

Browse files
committed
test: generalise the test matching
The value names may change in different builds, use pattern based tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220861 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 29f8cd7 commit 3e3ac8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/CodeGen/ms-intrinsics.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ long test__readfsdword(unsigned long Offset) {
4343
}
4444

4545
// CHECK-I386: define i32 @test__readfsdword(i32 %Offset){{.*}}{
46-
// CHECK-I386: %0 = inttoptr i32 %Offset to i32 addrspace(257)*
47-
// CHECK-I386: %1 = load volatile i32 addrspace(257)* %0, align 4
48-
// CHECK-I386: ret i32 %1
46+
// CHECK-I386: [[PTR:%[0-9]+]] = inttoptr i32 %Offset to i32 addrspace(257)*
47+
// CHECK-I386: [[VALUE:%[0-9]+]] = load volatile i32 addrspace(257)* [[PTR]], align 4
48+
// CHECK-I386: ret i32 [[VALUE:%[0-9]+]]
4949
// CHECK-I386: }
5050
#endif
5151

0 commit comments

Comments
 (0)