blob: 6d523954c7fabb84792f8dc9fd96258b6d626cd6 [file] [log] [blame]
Daniel Dunbarb3fd5002009-03-24 17:59:06 +00001// RUN: clang -ccc-host-triple i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm 2> %t.log
Daniel Dunbaraf07f932009-03-31 17:35:15 +00002// RUN: grep '"-triple" "i386-unknown-unknown"' %t.log &&
Daniel Dunbar5697aa02009-03-18 23:39:35 +00003// RUN: grep '"-S"' %t.log &&
4// RUN: grep '"-disable-free"' %t.log &&
5// RUN: grep '"--relocation-model" "static"' %t.log &&
6// RUN: grep '"--disable-fp-elim"' %t.log &&
7// RUN: grep '"--unwind-tables=0"' %t.log &&
8// RUN: grep '"--fmath-errno=1"' %t.log &&
9// RUN: grep '"-Os"' %t.log &&
Daniel Dunbar5697aa02009-03-18 23:39:35 +000010// RUN: grep '"-o" .*clang-translation\.c\.out\.tmp\.s' %t.log &&
Daniel Dunbarb3fd5002009-03-24 17:59:06 +000011// RUN: grep '"--asm-verbose"' %t.log &&
Daniel Dunbar868bd0a2009-05-06 03:16:41 +000012// RUN: clang -ccc-host-triple i386-apple-darwin9 -### -S %s -o %t.s 2> %t.log
13// RUN: grep '"--mcpu=pentium4"' %t.log &&
14// RUN: clang -ccc-host-triple x86_64-apple-darwin9 -### -S %s -o %t.s 2> %t.log
15// RUN: grep '"--mcpu=core2"' %t.log &&
Daniel Dunbar5697aa02009-03-18 23:39:35 +000016// RUN: true