r272573 - Test fix -- use captured call result instead of hardcoded %2.

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 13 11:44:22 PDT 2016


Author: tra
Date: Mon Jun 13 13:44:22 2016
New Revision: 272573

URL: http://llvm.org/viewvc/llvm-project?rev=272573&view=rev
Log:
Test fix -- use captured call result instead of hardcoded %2.

Modified:
    cfe/trunk/test/CodeGen/bitscan-builtins.c

Modified: cfe/trunk/test/CodeGen/bitscan-builtins.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/bitscan-builtins.c?rev=272573&r1=272572&r2=272573&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/bitscan-builtins.c (original)
+++ cfe/trunk/test/CodeGen/bitscan-builtins.c Mon Jun 13 13:44:22 2016
@@ -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]]
 }




More information about the cfe-commits mailing list