]> granicus.if.org Git - clang/commitdiff
clang/test/CodeGenCXX/builtins.cpp: Fix for -Asserts.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 2 Nov 2013 02:58:42 +0000 (02:58 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sat, 2 Nov 2013 02:58:42 +0000 (02:58 +0000)
  - Don't seek "entry:" It dosen't appear with -Asserts.
  - Take care that Codegen'ed Instruction(s) wouldn't have name(s) in -Asserts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193908 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/builtins.cpp

index 8d670fe8a3adaa0135e30a46d0fe70c929c3c928..98e2d1a8271c51345e7890dd1ce0db5ea7b35135 100644 (file)
@@ -21,9 +21,8 @@ long __builtin_abs(long);          // #2
 extern "C" int __builtin_abs(int); // #3
 
 int x = __builtin_abs(-2);
-// CHECK: entry:
-// CHECK-NEXT:  store i32 2, i32* @x, align 4
+// CHECK:  store i32 2, i32* @x, align 4
 
 long y = __builtin_abs(-2l);
-// CHECK: entry:
-// CHECK-NEXT:  %call = call i64 @_Z13__builtin_absl(i64 -2)
+// CHECK:  [[Y:%.+]] = call i64 @_Z13__builtin_absl(i64 -2)
+// CHECK:  store i64 [[Y]], i64* @y, align 8