mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
4bfea803ed
After D98856 these tests will by default break (fatal_error) if any of the wrong interfaces are used, so there's no longer a need to have a RUN line that checks for a warning message emitted by the compiler.
23 lines
831 B
LLVM
23 lines
831 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=aarch64--linux-gnu -mattr=+sve < %s | FileCheck %s
|
|
|
|
declare i32 @sve_printf(i8*, <vscale x 4 x i32>, ...)
|
|
|
|
@.str_1 = internal constant [6 x i8] c"boo!\0A\00"
|
|
|
|
define void @foo(<vscale x 4 x i32> %x) {
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
|
|
; CHECK-NEXT: .cfi_def_cfa_offset 16
|
|
; CHECK-NEXT: .cfi_offset w30, -16
|
|
; CHECK-NEXT: adrp x0, .str_1
|
|
; CHECK-NEXT: add x0, x0, :lo12:.str_1
|
|
; CHECK-NEXT: bl sve_printf
|
|
; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
|
|
; CHECK-NEXT: ret
|
|
%f = getelementptr [6 x i8], [6 x i8]* @.str_1, i64 0, i64 0
|
|
call i32 (i8*, <vscale x 4 x i32>, ...) @sve_printf(i8* %f, <vscale x 4 x i32> %x)
|
|
ret void
|
|
}
|