OLD | NEW |
(Empty) | |
| 1 ; RUN: pnacl-llc -mtriple=x86_64-unknown-nacl -filetype=asm %s -o - \ |
| 2 ; RUN: | FileCheck %s |
| 3 |
| 4 ; CHECK: func: |
| 5 define void @func(i32* %i) { |
| 6 entry: |
| 7 %0 = load i32* %i, align 4 |
| 8 ; Check that the inline asm expression is correctly transformed to NaCl |
| 9 ; pseudo-segment memory operand syntax. |
| 10 ; CHECK: movl %e{{[a-z]+}}, %e[[REG:[a-z]{2}]] |
| 11 ; CHECK: movl %nacl:(%r15,%r[[REG]]), %eax |
| 12 call void asm sideeffect "mov $0, %eax", "*m,~{dirflag},~{fpsr},~{flags}"(i32*
%i) |
| 13 ret void |
| 14 } |
| 15 |
OLD | NEW |