aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/inline-asm-n-constraint.ll
blob: 4774d43ee333f0bcdb6967d620322f54c162d6b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llc -mtriple=x86_64-unknown-unknown -no-integrated-as < %s 2>&1 | FileCheck %s

@x = global i32 0, align 4

define void @foo() {
; CHECK-LABEL: foo:
  call void asm sideeffect "foo $0", "n"(i32 42) nounwind
; CHECK:      #APP
; CHECK-NEXT: foo    $42
; CHECK-NEXT: #NO_APP
  call void asm "# $0", "in"(i32 1392848979)
; CHECK-NEXT: #APP
; CHECK-NEXT: # $1392848979
; CHECK-NEXT: #NO_APP
  ret void
; CHECK-NEXT: retq
}