brintos

brintos / llvm-project-archived public Read only

0
0
Text · 489 B · e8bf5ee Raw
23 lines · plain
1; RUN: llc < %s -mtriple=i686-- | FileCheck %s2 3define i32 @test(ptr %X, i32 %B) {4; CHECK-LABEL: test:5; CHECK-NOT: ret6; CHECK-NOT: lea7; CHECK: mov{{.}} $4, ({{.*}},{{.*}},4)8; CHECK: ret9; CHECK: mov{{.}} ({{.*}},{{.*}},4),10; CHECK: ret11 12	; This gep should be sunk out of this block into the load/store users.13	%P = getelementptr i32, ptr %X, i32 %B14	%G = icmp ult i32 %B, 123415	br i1 %G, label %T, label %F16T:17	store i32 4, ptr %P18	ret i32 14119F:20	%V = load i32, ptr %P21	ret i32 %V22}23