brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · b0699d4 Raw
89 lines · plain
1; RUN: llc %s -o - | sed -n -e '/#APP/,/#NO_APP/p' > %t2; RUN: sed -n -e 's/^;CHECK://p' %s > %t23; RUN: diff %t %t24 5target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"6target triple = "x86_64-unknown-linux-gnu"7 8; Function Attrs: nounwind uwtable9define void @foo() #0 {10entry:11  call void asm sideeffect "", "~{dirflag},~{fpsr},~{flags}"() #012;CHECK:	#APP13;CHECK:	#NO_APP14  call void asm sideeffect " ", "~{dirflag},~{fpsr},~{flags}"() #015;CHECK:	#APP16;CHECK:17;CHECK:	#NO_APP18  call void asm sideeffect "\0A", "~{dirflag},~{fpsr},~{flags}"() #019;CHECK:	#APP20;CHECK:21;CHECK:22;CHECK:	#NO_APP23  call void asm sideeffect "/*isolated c comment*/", "~{dirflag},~{fpsr},~{flags}"() #024;CHECK:	#APP25;CHECK:	#isolated c comment26;CHECK:	#NO_APP27  call void asm sideeffect "/**/", "~{dirflag},~{fpsr},~{flags}"() #028;CHECK:	#APP29;CHECK:	#30;CHECK:	#NO_APP31  call void asm sideeffect "/*comment with\0Anewline*/", "~{dirflag},~{fpsr},~{flags}"() #032;CHECK:	#APP33;CHECK:	#comment with34;CHECK:	#newline35;CHECK:	#NO_APP36  call void asm sideeffect "//isolated line comment", "~{dirflag},~{fpsr},~{flags}"() #037;CHECK:	#APP38;CHECK:	#isolated line comment39;CHECK:	#NO_APP40  call void asm sideeffect "#isolated line comment", "~{dirflag},~{fpsr},~{flags}"() #041;CHECK:	#APP42;CHECK:	#isolated line comment43;CHECK:	#NO_APP44   call void asm sideeffect "nop /* after nop */", "~{dirflag},~{fpsr},~{flags}"() #045;CHECK:	#APP46;CHECK:	nop	# after nop 47;CHECK:	#NO_APP48  call void asm sideeffect "nop // after nop", "~{dirflag},~{fpsr},~{flags}"() #049;CHECK:	#APP50;CHECK:	nop	# after nop51;CHECK:	#NO_APP52  call void asm sideeffect "nop # after nop", "~{dirflag},~{fpsr},~{flags}"() #053;CHECK:	#APP54;CHECK:	nop	# after nop55;CHECK:	#NO_APP56  call void asm sideeffect "nop /* after explicit ended nop */", "~{dirflag},~{fpsr},~{flags}"() #057;CHECK:	#APP58;CHECK:	nop	# after explicit ended nop 59;CHECK:	#NO_APP60  call void asm sideeffect "nop # after explicit ended nop", "~{dirflag},~{fpsr},~{flags}"() #061;CHECK:	#APP62;CHECK:	nop	# after explicit ended nop63;CHECK:	#NO_APP64  call void asm sideeffect "nop # after explicit end nop", "~{dirflag},~{fpsr},~{flags}"() #065;CHECK:	#APP66;CHECK:	nop	# after explicit end nop67;CHECK:	#NO_APP68  call void asm sideeffect "/* before nop */ nop", "~{dirflag},~{fpsr},~{flags}"() #069;CHECK:	#APP70;CHECK:	nop	# before nop 71;CHECK:	#NO_APP72  call void asm sideeffect "//comment with escaped newline\0A", "~{dirflag},~{fpsr},~{flags}"() #073;CHECK:	#APP74;CHECK:	#comment with escaped newline75;CHECK:76;CHECK:	#NO_APP77  call void asm sideeffect "/*0*/xor/*1*/%eax,/*2*/%ecx/*3*///eol", "~{dirflag},~{fpsr},~{flags}"() #078;CHECK:	#APP79;CHECK:	xorl	%eax, %ecx	#0	#1	#2	#3	#eol80;CHECK:	#NO_APP81  ret void82}83 84attributes #0 = { nounwind }85 86!llvm.ident = !{!0}87 88!0 = !{!"clang version 3.9.0 (trunk 268625) (llvm/trunk 268631)"}89