OLD | NEW |
(Empty) | |
| 1 # RUN: llvm-mc -filetype=obj -triple i686-unknown-nacl %s -o - | \ |
| 2 # RUN: llvm-objdump -triple i686 -d - | FileCheck %s |
| 3 |
| 4 .text |
| 5 .globl test_lock_prefix |
| 6 .type test_lock_prefix,@function |
| 7 .p2align 5 |
| 8 test_lock_prefix: |
| 9 .fill 29, 1, 0x90 |
| 10 lock cmpxchg8b 0x0(%ebp) |
| 11 |
| 12 # CHECK-LABEL: test_lock_prefix |
| 13 # CHECK: 1c: 90 nop |
| 14 # CHECK-NEXT: 1d: 0f 1f 00 nopl (%eax) |
| 15 # CHECK-NEXT: 20: f0 lock |
| 16 # CHECK-NEXT: 21: 0f c7 4d 00 cmpxchg8b (%ebp) |
| 17 |
| 18 .globl test_rep_prefix |
| 19 .type test_rep_prefix,@function |
| 20 .p2align 5 |
| 21 test_rep_prefix: |
| 22 mov 100, %ecx |
| 23 .fill 24, 1, 0x90 |
| 24 rep movsw |
| 25 |
| 26 # CHECK-LABEL: test_rep_prefix |
| 27 # CHECK: 5d: 90 nop |
| 28 # CHECK-NEXT: 5e: 66 90 nop |
| 29 # CHECK-NEXT: 60: f3 rep |
| 30 # CHECK-NEXT: 61: 66 a5 movsw |
| 31 |
| 32 .globl test_repne_prefix |
| 33 .type test_repne_prefix,@function |
| 34 .p2align 5 |
| 35 test_repne_prefix: |
| 36 mov 100, %ecx |
| 37 .fill 24, 1, 0x90 |
| 38 repne scasw |
| 39 |
| 40 # CHECK-LABEL: test_repne_prefix |
| 41 # CHECK: 9d: 90 nop |
| 42 # CHECK-NEXT: 9e: 66 90 nop |
| 43 # CHECK-NEXT: a0: f2 repne |
| 44 # CHECK-NEXT: a1: 66 af scasw |
OLD | NEW |