From: Hal Finkel Date: Sun, 7 Sep 2014 21:28:53 +0000 (+0000) Subject: Adjust test/CodeGenCXX/pr12251.cpp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7128878bd2e17bdb9a0c57e16fa72583563a116;p=clang Adjust test/CodeGenCXX/pr12251.cpp InstCombine just got a bit smarter about checking known bits of returned values, and because this test runs the optimizer, it requires an update. We should really rewrite this test to directly check the IR output from CodeGen. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217347 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/pr12251.cpp b/test/CodeGenCXX/pr12251.cpp index bb1c82dc81..21dadf5bad 100644 --- a/test/CodeGenCXX/pr12251.cpp +++ b/test/CodeGenCXX/pr12251.cpp @@ -18,14 +18,14 @@ e1 g1(e1 *x) { return *x; } // CHECK-LABEL: define i32 @_Z2g1P2e1 -// CHECK: load i32* %x, align 4, !range [[RANGE_i32_0_1:![^ ]*]] +// CHECK: ret i32 0 enum e2 { e2_a = 0 }; e2 g2(e2 *x) { return *x; } // CHECK-LABEL: define i32 @_Z2g2P2e2 -// CHECK: load i32* %x, align 4, !range [[RANGE_i32_0_1]] +// CHECK: ret i32 0 enum e3 { e3_a = 16 }; e3 g3(e3 *x) { @@ -137,7 +137,6 @@ e16 g16(e16 *x) { // CHECK: [[RANGE_i8_0_2]] = metadata !{i8 0, i8 2} -// CHECK: [[RANGE_i32_0_1]] = metadata !{i32 0, i32 1} // CHECK: [[RANGE_i32_0_32]] = metadata !{i32 0, i32 32} // CHECK: [[RANGE_i32_m16_16]] = metadata !{i32 -16, i32 16} // CHECK: [[RANGE_i32_m32_32]] = metadata !{i32 -32, i32 32}