summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>2014-03-01 05:45:09 +0000
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>2014-03-01 05:45:09 +0000
commit2b1682bcd42fc2a2daf772b063dc18fec0e2888a (patch)
tree85f4ff81a61fb8e081c3371b1bf41cf7d85f3720 /llvm/test
parent9fc29098dfa684de53dd180aa93e94c39c388631 (diff)
downloadbcm5719-llvm-2b1682bcd42fc2a2daf772b063dc18fec0e2888a.tar.gz
bcm5719-llvm-2b1682bcd42fc2a2daf772b063dc18fec0e2888a.zip
[Sparc] Implement writeNopData. Emit actual NOP instruction instead of just filling with zeroes.
llvm-svn: 202572
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/Sparc/sparc-nop-data.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/MC/Sparc/sparc-nop-data.s b/llvm/test/MC/Sparc/sparc-nop-data.s
new file mode 100644
index 00000000000..1538505af73
--- /dev/null
+++ b/llvm/test/MC/Sparc/sparc-nop-data.s
@@ -0,0 +1,11 @@
+! RUN: llvm-mc %s -arch=sparc -filetype=obj | llvm-readobj -s -sd | FileCheck %s
+! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -s -sd | FileCheck %s
+
+! CHECK: 0000: BA1F401D 01000000 01000000 01000000
+! CHECK: 0010: BA1F401D
+
+foo:
+ xor %i5, %i5, %i5
+ .align 16
+ xor %i5, %i5, %i5
+
OpenPOWER on IntegriCloud