OLD | NEW |
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 |
OLD | NEW |