brintos

brintos / llvm-project-archived public Read only

0
0
Text · 968 B · 09b8bdd Raw
27 lines · plain
1; RUN: llc -enable-ipra -print-regusage -o /dev/null 2>&1 < %s | FileCheck %s2 3; RUN: llc --stop-after=prologepilog -o - %s \4; RUN: | llc -x=mir -enable-ipra -passes="module(require<reg-usage>,function(machine-function(reg-usage-collector)),print<reg-usage>)" -o /dev/null 2>&1 \5; RUN: | FileCheck %s6 7target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"8target triple = "x86_64-apple-macosx10.12.0"9 10; Verify that bar does not clobber anything11; CHECK-NOT: bar Clobbered Registers:{{.+}}12; CHECK: bar Clobbered Registers:13define void @bar() #0 {14  ret void15}16 17; Verifies that inline assembly is correctly handled by giving a list of clobbered registers18; CHECK: foo Clobbered Registers: $ah $al $ax $ch $cl $cx $di $dih $dil $eax $ecx $edi $hax $hcx $hdi $rax $rcx $rdi19define void @foo() #0 {20  call void asm sideeffect "", "~{eax},~{ecx},~{edi}"() #021  ret void22}23 24@llvm.used = appending global [2 x ptr] [ptr @foo, ptr @bar]25 26attributes #0 = { nounwind }27