mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
5efe040582
Initialize all AArch64-specific passes in the TargetMachine so they can be run by llc. This can lead to conflicts in opt with some command line options that share the same name as the pass, so I took this opportunity to do some cleanups: * rename all relevant command line options from "aarch64-blah" to "aarch64-enable-blah" and update the tests accordingly * run clang-format on their declarations * move all these declarations to a common place (the TargetMachine) as opposed to having them scattered around (AArch64BranchRelaxation and AArch64AddressTypePromotion were the only offenders) llvm-svn: 277322
18 lines
460 B
LLVM
18 lines
460 B
LLVM
; RUN: llc -verify-machineinstrs -o - %s -mtriple=aarch64-linux-gnu -aarch64-enable-atomic-cfg-tidy=0 | FileCheck %s
|
|
|
|
@stored_label = global i8* null
|
|
|
|
define void @foo() {
|
|
; CHECK-LABEL: foo:
|
|
%lab = load i8*, i8** @stored_label
|
|
indirectbr i8* %lab, [label %otherlab, label %retlab]
|
|
; CHECK: adrp {{x[0-9]+}}, stored_label
|
|
; CHECK: ldr {{x[0-9]+}}, [{{x[0-9]+}}, {{#?}}:lo12:stored_label]
|
|
; CHECK: br {{x[0-9]+}}
|
|
|
|
otherlab:
|
|
ret void
|
|
retlab:
|
|
ret void
|
|
}
|