Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Unified Diff: test/MC/X86/AlignedBundling/bundle_straddle_prefix_inst.s

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/MC/Mips/elf-note-nacl.ll ('k') | test/MC/X86/AlignedBundling/nacl-call-auto-align-to-end.s » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/MC/X86/AlignedBundling/bundle_straddle_prefix_inst.s
diff --git a/test/MC/X86/AlignedBundling/bundle_straddle_prefix_inst.s b/test/MC/X86/AlignedBundling/bundle_straddle_prefix_inst.s
new file mode 100644
index 0000000000000000000000000000000000000000..94406b19f8ce80578e0bc7e295c18fa8942cd8e5
--- /dev/null
+++ b/test/MC/X86/AlignedBundling/bundle_straddle_prefix_inst.s
@@ -0,0 +1,44 @@
+# RUN: llvm-mc -filetype=obj -triple i686-unknown-nacl %s -o - | \
+# RUN: llvm-objdump -triple i686 -d - | FileCheck %s
+
+ .text
+ .globl test_lock_prefix
+ .type test_lock_prefix,@function
+ .p2align 5
+test_lock_prefix:
+ .fill 29, 1, 0x90
+ lock cmpxchg8b 0x0(%ebp)
+
+# CHECK-LABEL: test_lock_prefix
+# CHECK: 1c: 90 nop
+# CHECK-NEXT: 1d: 0f 1f 00 nopl (%eax)
+# CHECK-NEXT: 20: f0 lock
+# CHECK-NEXT: 21: 0f c7 4d 00 cmpxchg8b (%ebp)
+
+ .globl test_rep_prefix
+ .type test_rep_prefix,@function
+ .p2align 5
+test_rep_prefix:
+ mov 100, %ecx
+ .fill 24, 1, 0x90
+ rep movsw
+
+# CHECK-LABEL: test_rep_prefix
+# CHECK: 5d: 90 nop
+# CHECK-NEXT: 5e: 66 90 nop
+# CHECK-NEXT: 60: f3 rep
+# CHECK-NEXT: 61: 66 a5 movsw
+
+ .globl test_repne_prefix
+ .type test_repne_prefix,@function
+ .p2align 5
+test_repne_prefix:
+ mov 100, %ecx
+ .fill 24, 1, 0x90
+ repne scasw
+
+# CHECK-LABEL: test_repne_prefix
+# CHECK: 9d: 90 nop
+# CHECK-NEXT: 9e: 66 90 nop
+# CHECK-NEXT: a0: f2 repne
+# CHECK-NEXT: a1: 66 af scasw
« no previous file with comments | « test/MC/Mips/elf-note-nacl.ll ('k') | test/MC/X86/AlignedBundling/nacl-call-auto-align-to-end.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698