Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -verify-regalloc
      2 ; PR11125
      3 target 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"
      4 target 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 ;
     12 define void @f(i32 %x) nounwind uwtable ssp {
     13 entry:
     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 
     19 declare void @g()
     20