llvm-project/llvm/test/CodeGen/ARM/build-attributes-module.ll
paperchalice d1598c96e0
[ARM] Recognize abi tag module flags (#161306)
Recognize abi tag hints from frontend rather than from architecture and
options.
Frontend part: #161106.
2026-02-05 12:08:22 +00:00

15 lines
372 B
LLVM

; RUN: llc %s -mtriple=arm-none-none-eabi -o - | FileCheck %s
define void @f() {
ret void
}
!llvm.module.flags = !{!0, !1, !2}
; CHECK-NOT: .eabi_attribute 20
!0 = !{i32 2, !"arm-eabi-fp-denormal", i32 0}
; CHECK: .eabi_attribute 21, 1
!1 = !{i32 2, !"arm-eabi-fp-exceptions", i32 1}
; CHECK: .eabi_attribute 23, 1
!2 = !{i32 2, !"arm-eabi-fp-number-model", i32 1}