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

Side by Side Diff: tests_lit/assembler/x86/jump_encodings.ll

Issue 695993004: Subzero: Switch to AT&T asm syntax. I give up. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add opcode suffix to xchg. Use .L$ prefix for constant pool entries. Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 ; Tests various aspects of x86 branch encodings (near vs far, 1 ; Tests various aspects of x86 branch encodings (near vs far,
2 ; forward vs backward, using CFG labels, or local labels). 2 ; forward vs backward, using CFG labels, or local labels).
3 3
4 ; Use -ffunction-sections so that the offsets reset for each function. 4 ; Use -ffunction-sections so that the offsets reset for each function.
5 ; RUN: %p2i -i %s --args -O2 --verbose none -ffunction-sections \ 5 ; RUN: %p2i -i %s --args -O2 --verbose none -ffunction-sections \
6 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 6 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
7 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s 7 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
8 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s 8 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
9 9
10 ; Use atomic ops as filler, which shouldn't get optimized out. 10 ; Use atomic ops as filler, which shouldn't get optimized out.
11 declare void @llvm.nacl.atomic.store.i32(i32, i32*, i32) 11 declare void @llvm.nacl.atomic.store.i32(i32, i32*, i32)
12 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32) 12 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32)
13 declare i32 @llvm.nacl.atomic.rmw.i32(i32, i32*, i32, i32) 13 declare i32 @llvm.nacl.atomic.rmw.i32(i32, i32*, i32, i32)
14 14
15 define void @test_near_backward(i32 %iptr, i32 %val) { 15 define void @test_near_backward(i32 %iptr, i32 %val) {
16 entry: 16 entry:
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 ; CHECK: b: {{.*}} mov 209 ; CHECK: b: {{.*}} mov
210 ; CHECK-NEXT: d: {{.*}} xor 210 ; CHECK-NEXT: d: {{.*}} xor
211 ; CHECK-NEXT: f: {{.*}} lock 211 ; CHECK-NEXT: f: {{.*}} lock
212 ; CHECK-NEXT: 10: {{.*}} cmpxchg 212 ; CHECK-NEXT: 10: {{.*}} cmpxchg
213 ; (0x13 + 2) - 10 == 0xb 213 ; (0x13 + 2) - 10 == 0xb
214 ; CHECK-NEXT: 13: 75 f6 jne -10 214 ; CHECK-NEXT: 13: 75 f6 jne -10
215 ; (0x1c + 2) - 21 == 0x9 215 ; (0x1c + 2) - 21 == 0x9
216 ; CHECK: 1c: 74 eb je -21 216 ; CHECK: 1c: 74 eb je -21
217 217
218 ; ERRORS-NOT: ICE translation error 218 ; ERRORS-NOT: ICE translation error
OLDNEW
« no previous file with comments | « tests_lit/assembler/x86/immediate_encodings.ll ('k') | tests_lit/assembler/x86/opcode_register_encodings.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698