diff options
Diffstat (limited to 'test/CodeGen/SPARC/sret-secondary.ll')
-rw-r--r-- | test/CodeGen/SPARC/sret-secondary.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/sret-secondary.ll b/test/CodeGen/SPARC/sret-secondary.ll new file mode 100644 index 000000000000..4efcabfc6fb3 --- /dev/null +++ b/test/CodeGen/SPARC/sret-secondary.ll @@ -0,0 +1,8 @@ +; RUN: not llc -march=sparc < %s -o /dev/null 2>&1 | FileCheck %s + +; CHECK: sparc only supports sret on the first parameter + +define void @foo(i32 %a, i32* sret %out) { + store i32 %a, i32* %out + ret void +} |