OLD | NEW |
(Empty) | |
| 1 ; RUN: pnacl-llc -mtriple=x86_64-unknown-nacl -filetype=asm %s -o - \ |
| 2 ; RUN: | FileCheck %s |
| 3 |
| 4 target datalayout = "e-m:e-p:32:32-i64:64-f80:128-n8:16:32:64-S128" |
| 5 target triple = "x86_64--nacl" |
| 6 |
| 7 ; Test that we can handle 2 memory constraints in one inline asm |
| 8 define i32 @f(i32* %a, i32 %b) { |
| 9 entry: |
| 10 ; CHECK: lock |
| 11 ; CHECK: xaddl %e{{[a-z]*}}, %nacl:(%r15,%r{{[a-z]*}}) |
| 12 %r = call i32 asm sideeffect "lock; xaddl $0, $1", "=r,=*m,0,*m,~{memory},~{di
rflag},~{fpsr},~{flags}"(i32* %a, i32 %b, i32* %a) |
| 13 ret i32 %r |
| 14 } |
OLD | NEW |