Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/RISCV/attributes.ll
Show All 12 Lines | |||||
; RUN: llc -mtriple=riscv32 -mattr=+zbc %s -o - | FileCheck --check-prefix=RV32ZBC %s | ; RUN: llc -mtriple=riscv32 -mattr=+zbc %s -o - | FileCheck --check-prefix=RV32ZBC %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbe %s -o - | FileCheck --check-prefix=RV32ZBE %s | ; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbe %s -o - | FileCheck --check-prefix=RV32ZBE %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbf %s -o - | FileCheck --check-prefix=RV32ZBF %s | ; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbf %s -o - | FileCheck --check-prefix=RV32ZBF %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbm %s -o - | FileCheck --check-prefix=RV32ZBM %s | ; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbm %s -o - | FileCheck --check-prefix=RV32ZBM %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbp %s -o - | FileCheck --check-prefix=RV32ZBP %s | ; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbp %s -o - | FileCheck --check-prefix=RV32ZBP %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbr %s -o - | FileCheck --check-prefix=RV32ZBR %s | ; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbr %s -o - | FileCheck --check-prefix=RV32ZBR %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+zbs %s -o - | FileCheck --check-prefix=RV32ZBS %s | ; RUN: llc -mtriple=riscv32 -mattr=+zbs %s -o - | FileCheck --check-prefix=RV32ZBS %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbt %s -o - | FileCheck --check-prefix=RV32ZBT %s | ; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbt %s -o - | FileCheck --check-prefix=RV32ZBT %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+experimental-zbpbo %s -o - | FileCheck --check-prefix=RV32ZBPBO %s | |||||
; RUN: llc -mtriple=riscv32 -mattr=+v %s -o - | FileCheck --check-prefix=RV32V %s | ; RUN: llc -mtriple=riscv32 -mattr=+v %s -o - | FileCheck --check-prefix=RV32V %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+zbb,+zfh,+v,+f %s -o - | FileCheck --check-prefix=RV32COMBINED %s | ; RUN: llc -mtriple=riscv32 -mattr=+zbb,+zfh,+v,+f %s -o - | FileCheck --check-prefix=RV32COMBINED %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+zbkb %s -o - | FileCheck --check-prefix=RV32ZBKB %s | ; RUN: llc -mtriple=riscv32 -mattr=+zbkb %s -o - | FileCheck --check-prefix=RV32ZBKB %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+zbkc %s -o - | FileCheck --check-prefix=RV32ZBKC %s | ; RUN: llc -mtriple=riscv32 -mattr=+zbkc %s -o - | FileCheck --check-prefix=RV32ZBKC %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+zbkx %s -o - | FileCheck --check-prefix=RV32ZBKX %s | ; RUN: llc -mtriple=riscv32 -mattr=+zbkx %s -o - | FileCheck --check-prefix=RV32ZBKX %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+zknd %s -o - | FileCheck --check-prefix=RV32ZKND %s | ; RUN: llc -mtriple=riscv32 -mattr=+zknd %s -o - | FileCheck --check-prefix=RV32ZKND %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+zkne %s -o - | FileCheck --check-prefix=RV32ZKNE %s | ; RUN: llc -mtriple=riscv32 -mattr=+zkne %s -o - | FileCheck --check-prefix=RV32ZKNE %s | ||||
; RUN: llc -mtriple=riscv32 -mattr=+zknh %s -o - | FileCheck --check-prefix=RV32ZKNH %s | ; RUN: llc -mtriple=riscv32 -mattr=+zknh %s -o - | FileCheck --check-prefix=RV32ZKNH %s | ||||
Show All 23 Lines | |||||
; RUN: llc -mtriple=riscv64 -mattr=+zbc %s -o - | FileCheck --check-prefix=RV64ZBC %s | ; RUN: llc -mtriple=riscv64 -mattr=+zbc %s -o - | FileCheck --check-prefix=RV64ZBC %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbe %s -o - | FileCheck --check-prefix=RV64ZBE %s | ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbe %s -o - | FileCheck --check-prefix=RV64ZBE %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbf %s -o - | FileCheck --check-prefix=RV64ZBF %s | ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbf %s -o - | FileCheck --check-prefix=RV64ZBF %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbm %s -o - | FileCheck --check-prefix=RV64ZBM %s | ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbm %s -o - | FileCheck --check-prefix=RV64ZBM %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbp %s -o - | FileCheck --check-prefix=RV64ZBP %s | ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbp %s -o - | FileCheck --check-prefix=RV64ZBP %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbr %s -o - | FileCheck --check-prefix=RV64ZBR %s | ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbr %s -o - | FileCheck --check-prefix=RV64ZBR %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+zbs %s -o - | FileCheck --check-prefix=RV64ZBS %s | ; RUN: llc -mtriple=riscv64 -mattr=+zbs %s -o - | FileCheck --check-prefix=RV64ZBS %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbt %s -o - | FileCheck --check-prefix=RV64ZBT %s | ; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbt %s -o - | FileCheck --check-prefix=RV64ZBT %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+experimental-zbpbo %s -o - | FileCheck --check-prefix=RV64ZBPBO %s | |||||
; RUN: llc -mtriple=riscv64 -mattr=+v %s -o - | FileCheck --check-prefix=RV64V %s | ; RUN: llc -mtriple=riscv64 -mattr=+v %s -o - | FileCheck --check-prefix=RV64V %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+zbb,+zfh,+v,+f %s -o - | FileCheck --check-prefix=RV64COMBINED %s | ; RUN: llc -mtriple=riscv64 -mattr=+zbb,+zfh,+v,+f %s -o - | FileCheck --check-prefix=RV64COMBINED %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+zbkb %s -o - | FileCheck --check-prefix=RV64ZBKB %s | ; RUN: llc -mtriple=riscv64 -mattr=+zbkb %s -o - | FileCheck --check-prefix=RV64ZBKB %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+zbkc %s -o - | FileCheck --check-prefix=RV64ZBKC %s | ; RUN: llc -mtriple=riscv64 -mattr=+zbkc %s -o - | FileCheck --check-prefix=RV64ZBKC %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+zbkx %s -o - | FileCheck --check-prefix=RV64ZBKX %s | ; RUN: llc -mtriple=riscv64 -mattr=+zbkx %s -o - | FileCheck --check-prefix=RV64ZBKX %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+zknd %s -o - | FileCheck --check-prefix=RV64ZKND %s | ; RUN: llc -mtriple=riscv64 -mattr=+zknd %s -o - | FileCheck --check-prefix=RV64ZKND %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+zkne %s -o - | FileCheck --check-prefix=RV64ZKNE %s | ; RUN: llc -mtriple=riscv64 -mattr=+zkne %s -o - | FileCheck --check-prefix=RV64ZKNE %s | ||||
; RUN: llc -mtriple=riscv64 -mattr=+zknh %s -o - | FileCheck --check-prefix=RV64ZKNH %s | ; RUN: llc -mtriple=riscv64 -mattr=+zknh %s -o - | FileCheck --check-prefix=RV64ZKNH %s | ||||
Show All 24 Lines | |||||
; RV32ZBC: .attribute 5, "rv32i2p0_zbc1p0" | ; RV32ZBC: .attribute 5, "rv32i2p0_zbc1p0" | ||||
; RV32ZBE: .attribute 5, "rv32i2p0_zbe0p93" | ; RV32ZBE: .attribute 5, "rv32i2p0_zbe0p93" | ||||
; RV32ZBF: .attribute 5, "rv32i2p0_zbf0p93" | ; RV32ZBF: .attribute 5, "rv32i2p0_zbf0p93" | ||||
; RV32ZBM: .attribute 5, "rv32i2p0_zbm0p93" | ; RV32ZBM: .attribute 5, "rv32i2p0_zbm0p93" | ||||
; RV32ZBP: .attribute 5, "rv32i2p0_zbp0p93" | ; RV32ZBP: .attribute 5, "rv32i2p0_zbp0p93" | ||||
; RV32ZBR: .attribute 5, "rv32i2p0_zbr0p93" | ; RV32ZBR: .attribute 5, "rv32i2p0_zbr0p93" | ||||
; RV32ZBS: .attribute 5, "rv32i2p0_zbs1p0" | ; RV32ZBS: .attribute 5, "rv32i2p0_zbs1p0" | ||||
; RV32ZBT: .attribute 5, "rv32i2p0_zbt0p93" | ; RV32ZBT: .attribute 5, "rv32i2p0_zbt0p93" | ||||
; RV32ZBPBO: .attribute 5, "rv32i2p0_zbpbo0p911" | |||||
; RV32V: .attribute 5, "rv32i2p0_f2p0_d2p0_v1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0" | ; RV32V: .attribute 5, "rv32i2p0_f2p0_d2p0_v1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0" | ||||
; RV32COMBINED: .attribute 5, "rv32i2p0_f2p0_d2p0_v1p0_zfh1p0_zbb1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0" | ; RV32COMBINED: .attribute 5, "rv32i2p0_f2p0_d2p0_v1p0_zfh1p0_zbb1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0" | ||||
; RV32ZBKB: .attribute 5, "rv32i2p0_zbkb1p0" | ; RV32ZBKB: .attribute 5, "rv32i2p0_zbkb1p0" | ||||
; RV32ZBKC: .attribute 5, "rv32i2p0_zbkc1p0" | ; RV32ZBKC: .attribute 5, "rv32i2p0_zbkc1p0" | ||||
; RV32ZBKX: .attribute 5, "rv32i2p0_zbkx1p0" | ; RV32ZBKX: .attribute 5, "rv32i2p0_zbkx1p0" | ||||
; RV32ZKND: .attribute 5, "rv32i2p0_zknd1p0" | ; RV32ZKND: .attribute 5, "rv32i2p0_zknd1p0" | ||||
; RV32ZKNE: .attribute 5, "rv32i2p0_zkne1p0" | ; RV32ZKNE: .attribute 5, "rv32i2p0_zkne1p0" | ||||
; RV32ZKNH: .attribute 5, "rv32i2p0_zknh1p0" | ; RV32ZKNH: .attribute 5, "rv32i2p0_zknh1p0" | ||||
Show All 24 Lines | |||||
; RV64ZBC: .attribute 5, "rv64i2p0_zbc1p0" | ; RV64ZBC: .attribute 5, "rv64i2p0_zbc1p0" | ||||
; RV64ZBE: .attribute 5, "rv64i2p0_zbe0p93" | ; RV64ZBE: .attribute 5, "rv64i2p0_zbe0p93" | ||||
; RV64ZBF: .attribute 5, "rv64i2p0_zbf0p93" | ; RV64ZBF: .attribute 5, "rv64i2p0_zbf0p93" | ||||
; RV64ZBM: .attribute 5, "rv64i2p0_zbm0p93" | ; RV64ZBM: .attribute 5, "rv64i2p0_zbm0p93" | ||||
; RV64ZBP: .attribute 5, "rv64i2p0_zbp0p93" | ; RV64ZBP: .attribute 5, "rv64i2p0_zbp0p93" | ||||
; RV64ZBR: .attribute 5, "rv64i2p0_zbr0p93" | ; RV64ZBR: .attribute 5, "rv64i2p0_zbr0p93" | ||||
; RV64ZBS: .attribute 5, "rv64i2p0_zbs1p0" | ; RV64ZBS: .attribute 5, "rv64i2p0_zbs1p0" | ||||
; RV64ZBT: .attribute 5, "rv64i2p0_zbt0p93" | ; RV64ZBT: .attribute 5, "rv64i2p0_zbt0p93" | ||||
; RV64ZBPBO: .attribute 5, "rv64i2p0_zbpbo0p911" | |||||
; RV64V: .attribute 5, "rv64i2p0_f2p0_d2p0_v1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0" | ; RV64V: .attribute 5, "rv64i2p0_f2p0_d2p0_v1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0" | ||||
; RV64COMBINED: .attribute 5, "rv64i2p0_f2p0_d2p0_v1p0_zfh1p0_zbb1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0" | ; RV64COMBINED: .attribute 5, "rv64i2p0_f2p0_d2p0_v1p0_zfh1p0_zbb1p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0" | ||||
; RV64ZBKB: .attribute 5, "rv64i2p0_zbkb1p0" | ; RV64ZBKB: .attribute 5, "rv64i2p0_zbkb1p0" | ||||
; RV64ZBKC: .attribute 5, "rv64i2p0_zbkc1p0" | ; RV64ZBKC: .attribute 5, "rv64i2p0_zbkc1p0" | ||||
; RV64ZBKX: .attribute 5, "rv64i2p0_zbkx1p0" | ; RV64ZBKX: .attribute 5, "rv64i2p0_zbkx1p0" | ||||
; RV64ZKND: .attribute 5, "rv64i2p0_zknd1p0" | ; RV64ZKND: .attribute 5, "rv64i2p0_zknd1p0" | ||||
; RV64ZKNE: .attribute 5, "rv64i2p0_zkne1p0" | ; RV64ZKNE: .attribute 5, "rv64i2p0_zkne1p0" | ||||
; RV64ZKNH: .attribute 5, "rv64i2p0_zknh1p0" | ; RV64ZKNH: .attribute 5, "rv64i2p0_zknh1p0" | ||||
Show All 18 Lines |