blob: 19c3d6ca727e9753582b70514bd2b237b9ab0916 [file] [log] [blame]
Daniel Sanders753e1762014-02-13 14:44:26 +00001; RUN: llc < %s -verify-regalloc -no-integrated-as
Jakob Stoklund Olesen7fb56322011-10-14 00:34:31 +00002; PR11125
3target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
4target triple = "x86_64-apple-macosx10.7"
5
6; The inline asm takes %x as a GR32_ABCD virtual register.
7; The call to @g forces a spill of that register.
8;
9; The asm has a dead output tied to %x.
10; Verify that the spiller creates a value number for that dead def.
11;
12define void @f(i32 %x) nounwind uwtable ssp {
13entry:
14 tail call void @g() nounwind
15 %0 = tail call i32 asm sideeffect "foo $0", "=Q,0,~{ebx},~{dirflag},~{fpsr},~{flags}"(i32 %x) nounwind
16 ret void
17}
18
19declare void @g()