summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2007-03-24-InlineAsmXConstraint.ll
blob: 3e1786bef7932f051ffcd3d1e707214a38d540a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc < %s -march=x86 | FileCheck %s
target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin9"

define void @test() {
; CHECK-LABEL: test:
; CHECK-NOT: ret
; CHECK: psrlw $8, %xmm0
; CHECK: ret

  tail call void asm sideeffect "psrlw $0, %xmm0", "X,~{dirflag},~{fpsr},~{flags}"( i32 8 )
  ret void
}