brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 048690c Raw
49 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; CHECK-NOT: .sdata.4.g0,"aM"3 4target triple = "hexagon-unknown--elf"5 6%s.0 = type { i32 }7 8@g0 = global %s.0 { i32 3 }, align 4 #09@g1 = global i32 0, align 4 #110@g2 = global ptr @g0, align 4 #211@g3 = global i32 0, align 4 #312@g4 = global i32 0, align 4 #413 14; Function Attrs: nounwind optsize15define i32 @f0() #5 section ".text.main" {16b0:17  %v0 = load i32, ptr @g3, align 4, !tbaa !418  %v1 = add nsw i32 %v0, 119  store i32 %v1, ptr @g3, align 4, !tbaa !420  %v2 = load ptr, ptr @g2, align 4, !tbaa !821  %v3 = load i32, ptr @g1, align 4, !tbaa !1022  %v4 = getelementptr inbounds i8, ptr %v2, i32 %v323  %v6 = load i32, ptr %v4, align 4, !tbaa !424  store i32 %v6, ptr @g4, align 4, !tbaa !425  store i32 1, ptr @g3, align 4, !tbaa !426  ret i32 027}28 29attributes #0 = { "linker_input_section"=".sdata.4.cccc" "linker_output_section"=".sdata.4" }30attributes #1 = { "linker_input_section"=".sbss.4.np" "linker_output_section"=".sbss.4" }31attributes #2 = { "linker_input_section"=".sdata.4.cp" "linker_output_section"=".sdata.4" }32attributes #3 = { "linker_input_section"=".sbss.4.counter" "linker_output_section"=".sbss.4" }33attributes #4 = { "linker_input_section"=".sbss.4.value" "linker_output_section"=".sbss.4" }34attributes #5 = { nounwind optsize "target-cpu"="hexagonv55" }35 36!llvm.module.flags = !{!0, !2}37 38!0 = !{i32 6, !"Target CPU", !1}39!1 = !{!"hexagonv55"}40!2 = !{i32 6, !"Target Features", !3}41!3 = !{!"-hvx"}42!4 = !{!5, !5, i64 0}43!5 = !{!"int", !6, i64 0}44!6 = !{!"omnipotent char", !7, i64 0}45!7 = !{!"Simple C/C++ TBAA"}46!8 = !{!9, !9, i64 0}47!9 = !{!"any pointer", !6, i64 0}48!10 = !{!6, !6, i64 0}49