llvm-project/llvm/test/CodeGen/AArch64/strictfp-inlineasm.ll
David Green 22968f5b4a
[DAG] Add strictfp implicit def reg after metadata. (#168282)
This prevents a machine verifier error, where it "Expected implicit
register after groups".

Fixes #158661
2025-11-17 10:57:21 +00:00

18 lines
515 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
; RUN: llc -mtriple=aarch64-none-eabi -verify-machineinstrs < %s | FileCheck %s
define i32 @foo() strictfp {
; CHECK-LABEL: foo:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: mov w0, #-1 // =0xffffffff
; CHECK-NEXT: mov w8, #1 // =0x1
; CHECK-NEXT: //APP
; CHECK-NEXT: //NO_APP
; CHECK-NEXT: ret
entry:
tail call void asm sideeffect "", "r"(i32 1) #1, !srcloc !0
ret i32 -1
}
!0 = !{i64 87}