Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGen/builtins-riscv.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
rev | line source |
---|---|
207 | 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 | |
150 | 3 |
4 void 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 } |