brintos

brintos / llvm-project-archived public Read only

0
0
Text · 530 B · 77b9ae2 Raw
11 lines · c
1// RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv32 -disable-O0-optnone -emit-llvm -o - %s | opt -S -passes=mem2reg | FileCheck %s2// RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv64 -disable-O0-optnone -emit-llvm -o - %s | opt -S -passes=mem2reg | FileCheck %s3 4void test_eh_return_data_regno(void) {5  // CHECK: store volatile i32 106  // CHECK: store volatile i32 117  volatile int res;8  res = __builtin_eh_return_data_regno(0);9  res = __builtin_eh_return_data_regno(1);10}11