
Updated the RUN line in several test cases to use the new PM syntax opt -passes=<pipeline> instead of the deprecated syntax opt -pass1 -pass2 This was not a complete cleanup in clang/test. But just a swipe using some simple search-and-replace. Mainly for RUN lines involving -mem2reg, -instnamer and -early-cse.
11 lines
530 B
C
11 lines
530 B
C
// RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv32 -disable-O0-optnone -emit-llvm -o - %s | opt -S -passes=mem2reg | FileCheck %s
|
|
// RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv64 -disable-O0-optnone -emit-llvm -o - %s | opt -S -passes=mem2reg | FileCheck %s
|
|
|
|
void test_eh_return_data_regno(void) {
|
|
// CHECK: store volatile i32 10
|
|
// CHECK: store volatile i32 11
|
|
volatile int res;
|
|
res = __builtin_eh_return_data_regno(0);
|
|
res = __builtin_eh_return_data_regno(1);
|
|
}
|