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

Side by Side Diff: test/NaCl/X86/asm_memory.ll

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 ; RUN: pnacl-llc -mtriple=x86_64-unknown-nacl -filetype=asm %s -o - \ 1 ; RUN: pnacl-llc -mtriple=x86_64-unknown-nacl -filetype=asm %s -o - \
2 ; RUN: | FileCheck %s 2 ; RUN: | FileCheck %s
3 3
4 ; CHECK: func: 4 ; CHECK: func:
5 define void @func(i32* %i) { 5 define void @func(i32* %i) {
6 entry: 6 entry:
7 %0 = load i32* %i, align 4 7 %0 = load i32, i32* %i, align 4
8 ; Check that the inline asm expression is correctly transformed to NaCl 8 ; Check that the inline asm expression is correctly transformed to NaCl
9 ; pseudo-segment memory operand syntax. 9 ; pseudo-segment memory operand syntax.
10 ; CHECK: movl %e{{[a-z]+}}, %e[[REG:[a-z]{2}]] 10 ; CHECK: movl %e{{[a-z]+}}, %e[[REG:[a-z]{2}]]
11 ; CHECK: movl %nacl:(%r15,%r[[REG]]), %eax 11 ; CHECK: movl %nacl:(%r15,%r[[REG]]), %eax
12 call void asm sideeffect "mov $0, %eax", "*m,~{dirflag},~{fpsr},~{flags}"(i32* %i) 12 call void asm sideeffect "mov $0, %eax", "*m,~{dirflag},~{fpsr},~{flags}"(i32* %i)
13 ret void 13 ret void
14 } 14 }
15 15
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698