bolt/deps/llvm-18.1.8/llvm/test/CodeGen/Hexagon/hello-world-v60.ll
2025-02-14 19:21:04 +01:00

16 lines
356 B
LLVM

; RUN: llc -march=hexagon < %s | FileCheck %s
; CHECK: call puts
@g0 = private unnamed_addr constant [13 x i8] c"Hello World!\00"
; Function Attrs: nounwind
define i32 @f0() #0 {
b0:
%v0 = tail call i32 @puts(ptr @g0)
ret i32 0
}
; Function Attrs: nounwind
declare i32 @puts(ptr nocapture) #0
attributes #0 = { nounwind "target-cpu"="hexagonv60" }