brintos

brintos / llvm-project-archived public Read only

0
0
Text · 711 B · def0a83 Raw
22 lines · plain
1; RUN: llvm-as %s -o - | llvm-dis > %t1.ll2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll3; RUN: diff %t1.ll %t2.ll4 5@foo1 = external global <4 x float>6@foo2 = external global <2 x i10>7 8 9define void @main() 10{11        store <4 x float> <float 1.0, float 2.0, float 3.0, float 4.0>, <4 x float>* @foo112        store <2 x i10> <i10 4, i10 4>, <2 x i10>* @foo213	%l1 = load <4 x float>, <4 x float>* @foo114        %l2 = load <2 x i10>, <2 x i10>* @foo215        %r1 = extractelement <2 x i10> %l2, i32 1    16        %r2 = extractelement <2 x i10> %l2, i32 017        %t = mul i10 %r1, %r218        %r3 = insertelement <2 x i10> %l2, i10 %t, i32 0    19        store <2 x i10> %r3, <2 x i10>* @foo220        ret void21}22