mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
0fa09433f0
Most immediates are printed in Aarch64InstPrinter using 'formatImm' macro, but not all of them. Implementation contains following rules: - floating point immediates are always printed as decimal - signed integer immediates are printed depends on flag settings (for negative values 'formatImm' macro prints the value as i.e -0x01 which may be convenient when imm is an address or offset) - logical immediates are always printed as hex - the 64-bit immediate for advSIMD, encoded in "a🅱️c:d:e:f:g:h" is always printed as hex - the 64-bit immedaite in exception generation instructions like: brk, dcps1, dcps2, dcps3, hlt, hvc, smc, svc is always printed as hex - the rest of immediates is printed depends on availability of -print-imm-hex Signed-off-by: Maciej Gabka <maciej.gabka@arm.com> Signed-off-by: Paul Osmialowski <pawel.osmialowski@arm.com> Differential Revision: http://reviews.llvm.org/D16929 llvm-svn: 269446
68 lines
1.1 KiB
LLVM
68 lines
1.1 KiB
LLVM
; RUN: llc -mtriple aarch64-eabi -o - %s | FileCheck %s
|
|
|
|
declare void @llvm.aarch64.hint(i32) nounwind
|
|
|
|
define void @hint_nop() {
|
|
entry:
|
|
tail call void @llvm.aarch64.hint(i32 0) nounwind
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: hint_nop
|
|
; CHECK: nop
|
|
|
|
define void @hint_yield() {
|
|
entry:
|
|
tail call void @llvm.aarch64.hint(i32 1) nounwind
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: hint_yield
|
|
; CHECK: yield
|
|
|
|
define void @hint_wfe() {
|
|
entry:
|
|
tail call void @llvm.aarch64.hint(i32 2) nounwind
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: hint_wfe
|
|
; CHECK: wfe
|
|
|
|
define void @hint_wfi() {
|
|
entry:
|
|
tail call void @llvm.aarch64.hint(i32 3) nounwind
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: hint_wfi
|
|
; CHECK: wfi
|
|
|
|
define void @hint_sev() {
|
|
entry:
|
|
tail call void @llvm.aarch64.hint(i32 4) nounwind
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: hint_sev
|
|
; CHECK: sev
|
|
|
|
define void @hint_sevl() {
|
|
entry:
|
|
tail call void @llvm.aarch64.hint(i32 5) nounwind
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: hint_sevl
|
|
; CHECK: sevl
|
|
|
|
define void @hint_undefined() {
|
|
entry:
|
|
tail call void @llvm.aarch64.hint(i32 8) nounwind
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: hint_undefined
|
|
; CHECK: hint #8
|
|
|