summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/arm-inline-asm.c
blob: 0152b050fd7fe9e2d11b0ff69326ec85bc9918c2 (plain)
1
2
3
4
5
6
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s

void t1 (void *f, int g) {
  // CHECK: call void asm "str $1, $0", "=*Q,r"
  asm("str %1, %0" : "=Q"(f) : "r"(g));
}