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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
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
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
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
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 void test_eh_return_data_regno() {
anatofuz
parents:
diff changeset
5 // CHECK: store volatile i32 10
anatofuz
parents:
diff changeset
6 // CHECK: store volatile i32 11
anatofuz
parents:
diff changeset
7 volatile int res;
anatofuz
parents:
diff changeset
8 res = __builtin_eh_return_data_regno(0);
anatofuz
parents:
diff changeset
9 res = __builtin_eh_return_data_regno(1);
anatofuz
parents:
diff changeset
10 }