]> granicus.if.org Git - clang/commitdiff
Test fix -- use captured call result instead of hardcoded %2.
authorArtem Belevich <tra@google.com>
Mon, 13 Jun 2016 18:44:22 +0000 (18:44 +0000)
committerArtem Belevich <tra@google.com>
Mon, 13 Jun 2016 18:44:22 +0000 (18:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272573 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/bitscan-builtins.c

index 451e8f4570c6e646d6471e796c8b28982fab1a82..ae817e8157491987ccd6c180594afcc220854ca9 100644 (file)
@@ -14,6 +14,6 @@ int test_bit_scan_forward(int a) {
 int test_bit_scan_reverse(int a) {
   return _bit_scan_reverse(a);
 // CHECK:  %[[call:.*]] = call i32 @llvm.ctlz.i32(
-// CHECK:  %[[sub:.*]] = sub nsw i32 31, %2
+// CHECK:  %[[sub:.*]] = sub nsw i32 31, %[[call]]
 // CHECK: ret i32 %[[sub]]
 }