brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.8 KiB · 77b0d03 Raw
57 lines · plain
1;; Generate ELF attributes from llc.2 3; RUN: llc -mtriple=riscv32 -mattr=+xtheadba %s -o - | FileCheck --check-prefixes=CHECK,RV32XTHEADBA %s4; RUN: llc -mtriple=riscv32 -mattr=+xtheadbb %s -o - | FileCheck --check-prefixes=CHECK,RV32XTHEADBB %s5; RUN: llc -mtriple=riscv32 -mattr=+xtheadbs %s -o - | FileCheck --check-prefixes=CHECK,RV32XTHEADBS %s6; RUN: llc -mtriple=riscv32 -mattr=+xtheadcmo %s -o - | FileCheck --check-prefix=RV32XTHEADCMO %s7; RUN: llc -mtriple=riscv32 -mattr=+xtheadcondmov %s -o - | FileCheck --check-prefix=RV32XTHEADCONDMOV %s8; RUN: llc -mtriple=riscv32 -mattr=+xtheadfmemidx %s -o - | FileCheck --check-prefix=RV32XTHEADFMEMIDX %s9; RUN: llc -mtriple=riscv32 -mattr=+xtheadmac %s -o - | FileCheck --check-prefixes=CHECK,RV32XTHEADMAC %s10; RUN: llc -mtriple=riscv32 -mattr=+xtheadmemidx %s -o - | FileCheck --check-prefix=RV32XTHEADMEMIDX %s11; RUN: llc -mtriple=riscv32 -mattr=+xtheadmempair %s -o - | FileCheck --check-prefix=RV32XTHEADMEMPAIR %s12; RUN: llc -mtriple=riscv32 -mattr=+xtheadsync %s -o - | FileCheck --check-prefix=RV32XTHEADSYNC %s13; RUN: llc -mtriple=riscv32 -mattr=+xtheadvdot %s -o - | FileCheck --check-prefixes=CHECK,RV32XTHEADVDOT %s14 15; RUN: llc -mtriple=riscv64 -mattr=+xtheadba %s -o - | FileCheck --check-prefixes=CHECK,RV64XTHEADBA %s16; RUN: llc -mtriple=riscv64 -mattr=+xtheadbb %s -o - | FileCheck --check-prefixes=CHECK,RV64XTHEADBB %s17; RUN: llc -mtriple=riscv64 -mattr=+xtheadbs %s -o - | FileCheck --check-prefixes=CHECK,RV64XTHEADBS %s18; RUN: llc -mtriple=riscv64 -mattr=+xtheadcmo %s -o - | FileCheck --check-prefix=RV64XTHEADCMO %s19; RUN: llc -mtriple=riscv64 -mattr=+xtheadcondmov %s -o - | FileCheck --check-prefix=RV64XTHEADCONDMOV %s20; RUN: llc -mtriple=riscv64 -mattr=+xtheadfmemidx %s -o - | FileCheck --check-prefix=RV64XTHEADFMEMIDX %s21; RUN: llc -mtriple=riscv64 -mattr=+xtheadmac %s -o - | FileCheck --check-prefixes=CHECK,RV64XTHEADMAC %s22; RUN: llc -mtriple=riscv64 -mattr=+xtheadmemidx %s -o - | FileCheck --check-prefix=RV64XTHEADMEMIDX %s23; RUN: llc -mtriple=riscv64 -mattr=+xtheadmempair %s -o - | FileCheck --check-prefix=RV64XTHEADMEMPAIR %s24; RUN: llc -mtriple=riscv64 -mattr=+xtheadsync %s -o - | FileCheck --check-prefix=RV64XTHEADSYNC %s25; RUN: llc -mtriple=riscv64 -mattr=+xtheadvdot %s -o - | FileCheck --check-prefixes=CHECK,RV64XTHEADVDOT %s26 27; CHECK: .attribute 4, 1628 29; RV32XTHEADBA: .attribute 5, "rv32i2p1_xtheadba1p0"30; RV32XTHEADBB: .attribute 5, "rv32i2p1_xtheadbb1p0"31; RV32XTHEADBS: .attribute 5, "rv32i2p1_xtheadbs1p0"32; RV32XTHEADCMO: .attribute 5, "rv32i2p1_xtheadcmo1p0"33; RV32XTHEADCONDMOV: .attribute 5, "rv32i2p1_xtheadcondmov1p0"34; RV32XTHEADFMEMIDX: .attribute 5, "rv32i2p1_xtheadfmemidx1p0"35; RV32XTHEADMAC: .attribute 5, "rv32i2p1_xtheadmac1p0"36; RV32XTHEADMEMIDX: .attribute 5, "rv32i2p1_xtheadmemidx1p0"37; RV32XTHEADMEMPAIR: .attribute 5, "rv32i2p1_xtheadmempair1p0"38; RV32XTHEADSYNC: .attribute 5, "rv32i2p1_xtheadsync1p0"39; RV32XTHEADVDOT: .attribute 5, "rv32i2p1_f2p2_d2p2_v1p0_zicsr2p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0_xtheadvdot1p0"40 41; RV64XTHEADBA: .attribute 5, "rv64i2p1_xtheadba1p0"42; RV64XTHEADBB: .attribute 5, "rv64i2p1_xtheadbb1p0"43; RV64XTHEADBS: .attribute 5, "rv64i2p1_xtheadbs1p0"44; RV64XTHEADCMO: .attribute 5, "rv64i2p1_xtheadcmo1p0"45; RV64XTHEADCONDMOV: .attribute 5, "rv64i2p1_xtheadcondmov1p0"46; RV64XTHEADFMEMIDX: .attribute 5, "rv64i2p1_xtheadfmemidx1p0"47; RV64XTHEADMAC: .attribute 5, "rv64i2p1_xtheadmac1p0"48; RV64XTHEADMEMIDX: .attribute 5, "rv64i2p1_xtheadmemidx1p0"49; RV64XTHEADMEMPAIR: .attribute 5, "rv64i2p1_xtheadmempair1p0"50; RV64XTHEADSYNC: .attribute 5, "rv64i2p1_xtheadsync1p0"51; RV64XTHEADVDOT: .attribute 5, "rv64i2p1_f2p2_d2p2_v1p0_zicsr2p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0_xtheadvdot1p0"52 53define i32 @addi(i32 %a) {54  %1 = add i32 %a, 155  ret i32 %156}57