blob: 5297c42ae4e9f086d5f658a830a7d4fa57d44ce8 [file] [log] [blame]
Alex Bradbury77d4a8f2019-07-08 09:38:06 +00001// RUN: %clang_cc1 -Wall -Werror -triple riscv32 -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s
2// RUN: %clang_cc1 -Wall -Werror -triple riscv64 -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s
3
4void test_eh_return_data_regno() {
5 // CHECK: store volatile i32 10
6 // CHECK: store volatile i32 11
7 volatile int res;
8 res = __builtin_eh_return_data_regno(0);
9 res = __builtin_eh_return_data_regno(1);
10}