brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 5c76c6c Raw
37 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2; CHECK: r0 = #243; CHECK: r1 =4; // R2 should be assigned a value from R3+.5; CHECK: r2 = r{{[3-9]}}6; CHECK: trap07 8target datalayout = "e-m:e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f64:64:64-f32:32:32-v64:64:64-v32:32:32-a:0-n16:32"9target triple = "hexagon"10 11; Function Attrs: nounwind12define i32 @foo(i32 %status) #0 {13entry:14  %arg1 = alloca i32, align 415  call void @llvm.lifetime.start.p0(i64 4, ptr %arg1) #216  store i32 %status, ptr %arg1, align 4, !tbaa !117  %0 = call i32 asm sideeffect "r0 = #$1\0Ar1 = $2\0Ar2 = $4\0Atrap0 (#0)\0A$0 = r0", "=r,i,r,*m,r,~{r0},~{r1},~{r2}"(i32 24, ptr nonnull %arg1, ptr elementtype(i32) nonnull %arg1, i32 %status) #2, !srcloc !518  call void @llvm.lifetime.end.p0(i64 4, ptr %arg1) #219  ret i32 %020}21 22; Function Attrs: argmemonly nounwind23declare void @llvm.lifetime.start.p0(i64, ptr nocapture) #124 25; Function Attrs: argmemonly nounwind26declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #127 28attributes #0 = { nounwind "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv5" "target-features"="-hvx" "unsafe-fp-math"="false" "use-soft-float"="false" }29attributes #1 = { argmemonly nounwind }30attributes #2 = { nounwind }31 32!1 = !{!2, !2, i64 0}33!2 = !{!"int", !3, i64 0}34!3 = !{!"omnipotent char", !4, i64 0}35!4 = !{!"Simple C/C++ TBAA"}36!5 = !{i32 110, i32 129, i32 146, i32 163, i32 183}37