brintos

brintos / llvm-project-archived public Read only

0
0
Text · 614 B · c1b442e Raw
15 lines · plain
1; Suppress redundant loads feeding into fake uses.2; RUN: llc -filetype=asm -o - %s --mtriple=x86_64-unknown-unknown | FileCheck %s3; Windows ABI works differently, there's no offset.4;5; Look for the spill6; CHECK:      movq %r{{[a-z]+,}} -{{[0-9]+\(%rsp\)}}7; CHECK-NOT:  movq -{{[0-9]+\(%rsp\)}}, %r{{[a-z]+}}8 9define dso_local i32 @f(ptr %p) local_unnamed_addr optdebug {10entry:11  call void asm sideeffect "", "~{rax},~{rbx},~{rcx},~{rdx},~{rsi},~{rdi},~{rbp},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15},~{dirflag},~{fpsr},~{flags}"() #112  notail call void (...) @llvm.fake.use(ptr %p)13  ret i32 414}15