blob: 245c8d0f089b2a4b4389b6a7381dd3ac76ff0940 [file] [log] [blame]
static int foo(int *p)
{
asm("op %0" : "=m" (p[0]));
return p[0];
}
/*
* check-name: linear-asm-memop
* check-command: test-linearize $file
*
* check-output-start
foo:
.L0:
<entry-point>
asm "op %0"
out: "=m" (%arg1)
load.32 %r4 <- 0[%arg1]
ret.32 %r4
* check-output-end
*/