xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/builtins-ppc.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // REQUIRES: powerpc-registered-target
2f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple powerpc-unknown-unknown -emit-llvm %s -o - | FileCheck %s
3f4a2713aSLionel Sambuc 
test_eh_return_data_regno()4f4a2713aSLionel Sambuc void test_eh_return_data_regno()
5f4a2713aSLionel Sambuc {
6f4a2713aSLionel Sambuc   volatile int res;
7f4a2713aSLionel Sambuc   res = __builtin_eh_return_data_regno(0);  // CHECK: store volatile i32 3
8f4a2713aSLionel Sambuc   res = __builtin_eh_return_data_regno(1);  // CHECK: store volatile i32 4
9f4a2713aSLionel Sambuc }
10