brintos

brintos / llvm-project-archived public Read only

0
0
Text · 721 B · 1e72236 Raw
25 lines · plain
1; XFAIL: *2; RUN: opt -disable-basic-aa -passes=newgvn -S < %s | FileCheck %s3; NewGVN fails this due to missing load coercion4target datalayout = "e-p:32:32:32"5target triple = "i386-pc-linux-gnu"6define <2 x i32> @test1() {7  %v1 = alloca <2 x i32>8  call void @anything(ptr %v1)9  %v2 = load <2 x i32>, ptr %v110  %v3 = inttoptr <2 x i32> %v2 to <2 x ptr>11  store <2 x ptr> %v3, ptr %v112  %v5 = load <2 x i32>, ptr %v113  ret <2 x i32> %v514; CHECK-LABEL: @test1(15; CHECK: %v1 = alloca <2 x i32>16; CHECK: call void @anything(ptr %v1)17; CHECK: %v2 = load <2 x i32>, ptr %v118; CHECK: %v3 = inttoptr <2 x i32> %v2 to <2 x ptr>19; CHECK: store <2 x ptr> %v3, ptr %v120; CHECK: ret <2 x i32> %v221}22 23declare void @anything(ptr)24 25