[PowerPC] Recommit r314244 with refactoring and off by default
[llvm-core.git] / test / CodeGen / X86 / ipra-inline-asm.ll
blobe70b149e19e11e7139680ee2641a5860f1e5c45c
1 ; RUN: llc -enable-ipra -print-regusage -o /dev/null 2>&1 < %s | FileCheck %s
3 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-apple-macosx10.12.0"
6 ; Verify that bar does not clobber anything
7 ; CHECK-NOT: bar Clobbered Registers:{{.+}}
8 ; CHECK: bar Clobbered Registers:
9 define void @bar() #0 {
10   ret void
13 ; Verifies that inline assembly is correctly handled by giving a list of clobbered registers
14 ; CHECK: foo Clobbered Registers: AH AL AX CH CL CX DI DIL EAX ECX EDI RAX RCX RDI
15 define void @foo() #0 {
16   call void asm sideeffect "", "~{eax},~{ecx},~{edi}"() #0
17   ret void
20 attributes #0 = { nounwind }