diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2012-11-14 17:58:41 -0800 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2012-11-14 17:58:41 -0800 |
commit | f4099a3c92570a80cd9a3850cda598c5ea446b96 (patch) | |
tree | 5e2793c5dfcb9d07c0a3633854ed7dee3bfae075 /lib/MC/SubtargetFeature.cpp | |
parent | dd5234b1fcfe23c41acb0a1adb68514b7e622c81 (diff) |
Fix nacl.read.tp() intrinsic to not generate "addl %gs:0, %REG"
NaCl only allows using "mov" with a %gs prefix.
The fix requires generating the mov instruction using a custom
inserter that calls BuildMI().
Also convert the intrinsic's tests to use -filetype=asm rather than
-filetype=obj. This avoids some limitations of llvm-objdump and is
the more normal way to write LLVM tests.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=2837
TEST="llvm-lit test/NaCl"
Review URL: https://codereview.chromium.org/11410058
Diffstat (limited to 'lib/MC/SubtargetFeature.cpp')
0 files changed, 0 insertions, 0 deletions