// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -no-opaque-pointers -triple riscv32 -target-feature +experimental-zbt -emit-llvm %s -o - \
// RUN: | FileCheck %s -check-prefix=RV32ZBT
// RV32ZBT-LABEL: @fsl(
// RV32ZBT-NEXT: entry:
// RV32ZBT-NEXT: [[RS1_ADDR:%.*]] = alloca i32, align 4
// RV32ZBT-NEXT: [[RS2_ADDR:%.*]] = alloca i32, align 4
// RV32ZBT-NEXT: [[RS3_ADDR:%.*]] = alloca i32, align 4
// RV32ZBT-NEXT: store i32 [[RS1:%.*]], i32* [[RS1_ADDR]], align 4
// RV32ZBT-NEXT: store i32 [[RS2:%.*]], i32* [[RS2_ADDR]], align 4
// RV32ZBT-NEXT: store i32 [[RS3:%.*]], i32* [[RS3_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP0:%.*]] = load i32, i32* [[RS1_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP1:%.*]] = load i32, i32* [[RS2_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP2:%.*]] = load i32, i32* [[RS3_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP3:%.*]] = call i32 @llvm.riscv.fsl.i32(i32 [[TMP0]], i32 [[TMP1]], i32 [[TMP2]])
// RV32ZBT-NEXT: ret i32 [[TMP3]]
//
int
// RV32ZBT-LABEL: @fsr(
// RV32ZBT-NEXT: entry:
// RV32ZBT-NEXT: [[RS1_ADDR:%.*]] = alloca i32, align 4
// RV32ZBT-NEXT: [[RS2_ADDR:%.*]] = alloca i32, align 4
// RV32ZBT-NEXT: [[RS3_ADDR:%.*]] = alloca i32, align 4
// RV32ZBT-NEXT: store i32 [[RS1:%.*]], i32* [[RS1_ADDR]], align 4
// RV32ZBT-NEXT: store i32 [[RS2:%.*]], i32* [[RS2_ADDR]], align 4
// RV32ZBT-NEXT: store i32 [[RS3:%.*]], i32* [[RS3_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP0:%.*]] = load i32, i32* [[RS1_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP1:%.*]] = load i32, i32* [[RS2_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP2:%.*]] = load i32, i32* [[RS3_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP3:%.*]] = call i32 @llvm.riscv.fsr.i32(i32 [[TMP0]], i32 [[TMP1]], i32 [[TMP2]])
// RV32ZBT-NEXT: ret i32 [[TMP3]]
//
int
// RV32ZBT-LABEL: @fsri(
// RV32ZBT-NEXT: entry:
// RV32ZBT-NEXT: [[RS1_ADDR:%.*]] = alloca i32, align 4
// RV32ZBT-NEXT: [[RS2_ADDR:%.*]] = alloca i32, align 4
// RV32ZBT-NEXT: store i32 [[RS1:%.*]], i32* [[RS1_ADDR]], align 4
// RV32ZBT-NEXT: store i32 [[RS2:%.*]], i32* [[RS2_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP0:%.*]] = load i32, i32* [[RS1_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP1:%.*]] = load i32, i32* [[RS2_ADDR]], align 4
// RV32ZBT-NEXT: [[TMP2:%.*]] = call i32 @llvm.riscv.fsr.i32(i32 [[TMP0]], i32 [[TMP1]], i32 15)
// RV32ZBT-NEXT: ret i32 [[TMP2]]
//
int