1 ; RUN: llc %s -o - | sed -n -e '/#APP/,/#NO_APP/p' > %t
2 ; RUN: sed -n -e 's/^;CHECK://p' %s > %t2
5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
6 target triple = "x86_64-unknown-linux-gnu"
8 ; Function Attrs: nounwind uwtable
9 define void @foo() #0 {
11 call void asm sideeffect "", "~{dirflag},~{fpsr},~{flags}"() #0
14 call void asm sideeffect " ", "~{dirflag},~{fpsr},~{flags}"() #0
18 call void asm sideeffect "\0A", "~{dirflag},~{fpsr},~{flags}"() #0
23 call void asm sideeffect "/*isolated c comment*/", "~{dirflag},~{fpsr},~{flags}"() #0
25 ;CHECK: #isolated c comment
27 call void asm sideeffect "/**/", "~{dirflag},~{fpsr},~{flags}"() #0
31 call void asm sideeffect "/*comment with\0Anewline*/", "~{dirflag},~{fpsr},~{flags}"() #0
36 call void asm sideeffect "//isolated line comment", "~{dirflag},~{fpsr},~{flags}"() #0
38 ;CHECK: #isolated line comment
40 call void asm sideeffect "#isolated line comment", "~{dirflag},~{fpsr},~{flags}"() #0
42 ;CHECK: #isolated line comment
44 call void asm sideeffect "nop /* after nop */", "~{dirflag},~{fpsr},~{flags}"() #0
46 ;CHECK: nop # after nop
48 call void asm sideeffect "nop // after nop", "~{dirflag},~{fpsr},~{flags}"() #0
50 ;CHECK: nop # after nop
52 call void asm sideeffect "nop # after nop", "~{dirflag},~{fpsr},~{flags}"() #0
54 ;CHECK: nop # after nop
56 call void asm sideeffect "nop /* after explicit ended nop */", "~{dirflag},~{fpsr},~{flags}"() #0
58 ;CHECK: nop # after explicit ended nop
60 call void asm sideeffect "nop # after explicit ended nop", "~{dirflag},~{fpsr},~{flags}"() #0
62 ;CHECK: nop # after explicit ended nop
64 call void asm sideeffect "nop # after explicit end nop", "~{dirflag},~{fpsr},~{flags}"() #0
66 ;CHECK: nop # after explicit end nop
68 call void asm sideeffect "/* before nop */ nop", "~{dirflag},~{fpsr},~{flags}"() #0
70 ;CHECK: nop # before nop
72 call void asm sideeffect "//comment with escaped newline\0A", "~{dirflag},~{fpsr},~{flags}"() #0
74 ;CHECK: #comment with escaped newline
77 call void asm sideeffect "/*0*/xor/*1*/%eax,/*2*/%ecx/*3*///eol", "~{dirflag},~{fpsr},~{flags}"() #0
79 ;CHECK: xorl %eax, %ecx #0 #1 #2 #3 #eol
84 attributes #0 = { nounwind }
88 !0 = !{!"clang version 3.9.0 (trunk 268625) (llvm/trunk 268631)"}