summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2016-06-13 18:44:22 +0000
committerArtem Belevich <tra@google.com>2016-06-13 18:44:22 +0000
commit6530a3e73f2711f086570bdf926335a5ce57182a (patch)
tree3e03ad346bf69968352c9d44fcf9299df7b32f58 /clang
parentcb07d65173a4271c08f80a159b02354fe6e8894b (diff)
downloadbcm5719-llvm-6530a3e73f2711f086570bdf926335a5ce57182a.tar.gz
bcm5719-llvm-6530a3e73f2711f086570bdf926335a5ce57182a.zip
Test fix -- use captured call result instead of hardcoded %2.
llvm-svn: 272573
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGen/bitscan-builtins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/bitscan-builtins.c b/clang/test/CodeGen/bitscan-builtins.c
index 451e8f4570c..ae817e81574 100644
--- a/clang/test/CodeGen/bitscan-builtins.c
+++ b/clang/test/CodeGen/bitscan-builtins.c
@@ -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]]
}
OpenPOWER on IntegriCloud