summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/arm-asm.c
blob: 9b1082a198e3e1d4a51489dc85ec437e5e64ba3f (about) (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -triple thumb %s -emit-llvm -o - | FileCheck %s
int t1() {
    static float k = 1.0f;
    // CHECK: flds s15
    __asm__ volatile ("flds s15, %[k] \n" :: [k] "Uv" (k) : "s15");
    return 0;
}