brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1011 B · 14d769a Raw
52 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2;3; Generate stores with assignment of constant values.4 5; CHECK: memw{{.*}} = {{.*}}#06; CHECK: memw{{.*}} = {{.*}}#17; CHECK: memh{{.*}} = {{.*}}#28; CHECK: memh{{.*}} = {{.*}}#39; CHECK: memb{{.*}} = {{.*}}#410; CHECK: memb{{.*}} = {{.*}}#511 12define void @f0(ptr nocapture %a0) #0 {13b0:14  store i32 0, ptr %a0, align 415  ret void16}17 18define void @f1(ptr nocapture %a0) #0 {19b0:20  %v0 = getelementptr inbounds i32, ptr %a0, i32 121  store i32 1, ptr %v0, align 422  ret void23}24 25define void @f2(ptr nocapture %a0) #0 {26b0:27  store i16 2, ptr %a0, align 228  ret void29}30 31define void @f3(ptr nocapture %a0) #0 {32b0:33  %v0 = getelementptr inbounds i16, ptr %a0, i32 234  store i16 3, ptr %v0, align 235  ret void36}37 38define void @f4(ptr nocapture %a0) #0 {39b0:40  store i8 4, ptr %a0, align 141  ret void42}43 44define void @f5(ptr nocapture %a0) #0 {45b0:46  %v0 = getelementptr inbounds i8, ptr %a0, i32 247  store i8 5, ptr %v0, align 148  ret void49}50 51attributes #0 = { nounwind }52