1 // REQUIRES: sparc-registered-target
2 // RUN: %clang_cc1 -triple sparc-unknown-unknown -emit-llvm %s -o - | FileCheck %s
3 // RUN: %clang_cc1 -triple sparc64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
4 
test_eh_return_data_regno(void)5 void test_eh_return_data_regno(void)
6 {
7   volatile int res;
8   res = __builtin_eh_return_data_regno(0);  // CHECK: store volatile i32 24
9   res = __builtin_eh_return_data_regno(1);  // CHECK: store volatile i32 25
10 }
11