Skip to content

Commit 3a2c6c4

Browse files
nikickrishna2803
authored andcommitted
[InstSimplify] Regenerate test checks (NFC)
Change the function name so that UTC works properly. Also move the test into the InstCombine directory, as that's the pass that's actually being tested.
1 parent 1183e44 commit 3a2c6c4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

llvm/test/Transforms/InstSimplify/ConstProp/vectorgep-crash.ll renamed to llvm/test/Transforms/InstCombine/vectorgep-crash.ll

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ target triple = "x86_64-unknown-linux-gnu"
1010
%Partials = type { [2 x double] }
1111
%Partials.73 = type { [2 x %Dual.72] }
1212

13-
; Function Attrs: sspreq
14-
define <8 x ptr> @"julia_axpy!_65480"(ptr %arg1, <8 x i64> %arg2) {
13+
define <8 x ptr> @test_vector_gep(ptr %arg1, <8 x i64> %arg2) {
14+
; CHECK-LABEL: define <8 x ptr> @test_vector_gep(
15+
; CHECK-SAME: ptr [[ARG1:%.*]], <8 x i64> [[ARG2:%.*]]) {
16+
; CHECK-NEXT: [[TOP:.*:]]
17+
; CHECK-NEXT: [[VECTORGEP14:%.*]] = getelementptr inbounds [[DUAL:%.*]], ptr [[ARG1]], <8 x i64> [[ARG2]], i32 1, i32 0, i64 0, i32 1, i32 0, i64 0
18+
; CHECK-NEXT: ret <8 x ptr> [[VECTORGEP14]]
19+
;
1520
top:
16-
; CHECK: %VectorGep14 = getelementptr inbounds %Dual, ptr %arg1, <8 x i64> %arg2, i32 1, i32 0, i64 0, i32 1, i32 0, i64 0
1721
%VectorGep14 = getelementptr inbounds %Dual, ptr %arg1, <8 x i64> %arg2, i32 1, i32 0, i64 0, i32 1, i32 0, i64 0
1822
%0 = bitcast <8 x ptr> %VectorGep14 to <8 x ptr>
1923
ret <8 x ptr> %0

0 commit comments

Comments
 (0)