[PATCH] D42712: [utils] Add utils/update_cc_test_checks.py
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 18:31:13 PST 2018
MaskRay added a comment.
In https://reviews.llvm.org/D42712#1022527, @arichardson wrote:
> Thanks for working on this!
>
> It almost worked for me but it generated the following LABEL assertions for me
> `// CHECK-LABEL: test:` which I then had to manually change to `// CHECK-LABEL: define i32 @test(`
Thanks. The label is not kept as is because it has been scrubbed in the same way as tests are scrubbed by utils/update_test_checks.py
% utils/update_test_checks.py --opt-binary=~/Dev/llvm/release/bin/opt test/CodeGen/Generic/expand-experimental-reductions.ll
...............................
define i64 @or_i64(<2 x i64> %vec) {
; CHECK-LABEL: @or_i64(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[RDX_SHUF:%.*]] = shufflevector <2 x i64> [[VEC:%.*]], <2 x i64> undef, <2 x i32> <i32 1, i32 undef>
; CHECK-NEXT: [[BIN_RDX:%.*]] = or <2 x i64> [[VEC]], [[RDX_SHUF]]
; CHECK-NEXT: [[TMP0:%.*]] = extractelement <2 x i64> [[BIN_RDX]], i32 0
; CHECK-NEXT: ret i64 [[TMP0]]
;
Repository:
rL LLVM
https://reviews.llvm.org/D42712
More information about the llvm-commits
mailing list