brintos

brintos / llvm-project-archived public Read only

0
0
Text · 968 B · 1a34604 Raw
40 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2;3; Check that the immediate form for the store instructions are generated.4;5; CHECK: memw(r{{[0-9]+}}+#156) = #06; CHECK: memw(r{{[0-9]+}}+#160) = ##g0+1447; CHECK: memw(r{{[0-9]+}}+#172) = ##f38 9%s.0 = type { [156 x i8], ptr, ptr, i8, ptr, ptr, i8 }10 11@g0 = common global %s.0 zeroinitializer, align 412 13; Function Attrs: nounwind14define void @f0(ptr %a0) #0 {15b0:16  %v0 = getelementptr inbounds %s.0, ptr %a0, i32 0, i32 117  store ptr null, ptr %v0, align 418  ret void19}20 21; Function Attrs: nounwind22define void @f1(ptr %a0) #0 {23b0:24  %v0 = getelementptr inbounds %s.0, ptr %a0, i32 0, i32 225  store ptr getelementptr inbounds (%s.0, ptr @g0, i32 0, i32 0, i32 144), ptr %v0, align 426  ret void27}28 29; Function Attrs: nounwind30define void @f2(ptr %a0) #0 {31b0:32  %v0 = getelementptr inbounds %s.0, ptr %a0, i32 0, i32 533  store ptr @f3, ptr %v0, align 434  ret void35}36 37declare void @f3(ptr)38 39attributes #0 = { nounwind }40