Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CodeGen/builtins-riscv.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children | 1f2b6ac9f198 |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
1 // RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv32 -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s | 1 // RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv32 -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s |
2 // RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv64 -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s | 2 // RUN: %clang_cc1 -Wall -Wno-unused-but-set-variable -Werror -triple riscv64 -disable-O0-optnone -emit-llvm -o - %s | opt -S -mem2reg | FileCheck %s |
3 | 3 |
4 void test_eh_return_data_regno() { | 4 void test_eh_return_data_regno(void) { |
5 // CHECK: store volatile i32 10 | 5 // CHECK: store volatile i32 10 |
6 // CHECK: store volatile i32 11 | 6 // CHECK: store volatile i32 11 |
7 volatile int res; | 7 volatile int res; |
8 res = __builtin_eh_return_data_regno(0); | 8 res = __builtin_eh_return_data_regno(0); |
9 res = __builtin_eh_return_data_regno(1); | 9 res = __builtin_eh_return_data_regno(1); |