Add tests for a corner case of when to relax all instructions:
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 11 Dec 2012 05:52:24 +0000 (05:52 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 11 Dec 2012 05:52:24 +0000 (05:52 +0000)
commitc720d46ed7a4c7e9c1fcc7c52ec434ee0ad0bf83
tree1ead15cf8224ef520da3f1115cc61409d6a14982
parent92e71918b1680a1eacd6de6e242d4a9ce6176a4b
Add tests for a corner case of when to relax all instructions:

We don't want to relax all instructions in

$ clang -c test.s

since most users don't pass -O when using the driver to assemble.

On the other hand, -save-temps should not change the output unnecessary, so in

$ clang -c test.c -save-temps

we should relax all instructions.

llvm-svn: 169815
clang/test/Driver/integrated-as.c [new file with mode: 0644]
clang/test/Driver/integrated-as.s [new file with mode: 0644]