@@ -1702,16 +1702,16 @@ multiclass FMA_INST {
17021702
17031703defm INT_NVVM_FMA : FMA_INST;
17041704
1705- foreach rnd = ["_RN ", "_RZ ", "_RM ", "_RP "] in {
1706- foreach sat = ["", "_SAT "] in {
1707- foreach type = ["F16 ", "BF16 "] in {
1708- def INT_NVVM_FMA # rnd # sat # _F32_ # type :
1705+ foreach rnd = ["_rn ", "_rz ", "_rm ", "_rp "] in {
1706+ foreach sat = ["", "_sat "] in {
1707+ foreach type = ["f16 ", "bf16 "] in {
1708+ def INT_NVVM_MIXED_FMA # rnd # sat # _f32_ # type :
17091709 BasicNVPTXInst<(outs B32:$dst), (ins B16:$a, B16:$b, B32:$c),
1710- !tolower(! subst("_", ".", "fma" # rnd # sat # "_f32_" # type) ),
1710+ !subst("_", ".", "fma" # rnd # sat # "_f32_" # type),
17111711 [(set f32:$dst,
1712- (!cast<Intrinsic>(!tolower( "int_nvvm_fma" # rnd # sat # "_f") )
1713- (f32 (fpextend !cast<ValueType>(!tolower( type) ):$a)),
1714- (f32 (fpextend !cast<ValueType>(!tolower( type) ):$b)),
1712+ (!cast<Intrinsic>("int_nvvm_fma" # rnd # sat # "_f")
1713+ (f32 (fpextend !cast<ValueType>(type):$a)),
1714+ (f32 (fpextend !cast<ValueType>(type):$b)),
17151715 f32:$c))]>,
17161716 Requires<[hasSM<100>, hasPTX<86>]>;
17171717 }
@@ -1838,15 +1838,15 @@ def INT_NVVM_ADD_RZ_D : F_MATH_2<"add.rz.f64", B64, B64, B64, int_nvvm_add_rz_d>
18381838def INT_NVVM_ADD_RM_D : F_MATH_2<"add.rm.f64", B64, B64, B64, int_nvvm_add_rm_d>;
18391839def INT_NVVM_ADD_RP_D : F_MATH_2<"add.rp.f64", B64, B64, B64, int_nvvm_add_rp_d>;
18401840
1841- foreach rnd = ["_RN ", "_RZ ", "_RM ", "_RP "] in {
1842- foreach sat = ["", "_SAT "] in {
1843- foreach type = ["F16 ", "BF16 "] in {
1844- def INT_NVVM_ADD # rnd # sat # _F32_ # type :
1841+ foreach rnd = ["_rn ", "_rz ", "_rm ", "_rp "] in {
1842+ foreach sat = ["", "_sat "] in {
1843+ foreach type = ["f16 ", "bf16 "] in {
1844+ def INT_NVVM_MIXED_ADD # rnd # sat # _f32_ # type :
18451845 BasicNVPTXInst<(outs B32:$dst), (ins B16:$a, B32:$b),
1846- !tolower(! subst("_", ".", "add" # rnd # sat # "_f32_" # type) ),
1846+ !subst("_", ".", "add" # rnd # sat # "_f32_" # type),
18471847 [(set f32:$dst,
1848- (!cast<Intrinsic>(!tolower( "int_nvvm_add" # rnd # sat # "_f") )
1849- (f32 (fpextend !cast<ValueType>(!tolower( type) ):$a)),
1848+ (!cast<Intrinsic>("int_nvvm_add" # rnd # sat # "_f")
1849+ (f32 (fpextend !cast<ValueType>(type):$a)),
18501850 f32:$b))]>,
18511851 Requires<[hasSM<100>, hasPTX<86>]>;
18521852 }
@@ -1878,15 +1878,15 @@ def INT_NVVM_SUB_RZ_D : F_MATH_2<"sub.rz.f64", B64, B64, B64, int_nvvm_sub_rz_d>
18781878def INT_NVVM_SUB_RM_D : F_MATH_2<"sub.rm.f64", B64, B64, B64, int_nvvm_sub_rm_d>;
18791879def INT_NVVM_SUB_RP_D : F_MATH_2<"sub.rp.f64", B64, B64, B64, int_nvvm_sub_rp_d>;
18801880
1881- foreach rnd = ["_RN ", "_RZ ", "_RM ", "_RP "] in {
1882- foreach sat = ["", "_SAT "] in {
1883- foreach type = ["F16 ", "BF16 "] in {
1884- def INT_NVVM_SUB # rnd # sat # _F32_ # type :
1881+ foreach rnd = ["_rn ", "_rz ", "_rm ", "_rp "] in {
1882+ foreach sat = ["", "_sat "] in {
1883+ foreach type = ["f16 ", "bf16 "] in {
1884+ def INT_NVVM_MIXED_SUB # rnd # sat # _f32_ # type :
18851885 BasicNVPTXInst<(outs B32:$dst), (ins B16:$a, B32:$b),
1886- !tolower(! subst("_", ".", "sub" # rnd # sat # "_f32_" # type) ),
1886+ !subst("_", ".", "sub" # rnd # sat # "_f32_" # type),
18871887 [(set f32:$dst,
1888- (!cast<Intrinsic>(!tolower( "int_nvvm_sub" # rnd # sat # "_f") )
1889- (f32 (fpextend !cast<ValueType>(!tolower( type) ):$a)),
1888+ (!cast<Intrinsic>("int_nvvm_sub" # rnd # sat # "_f")
1889+ (f32 (fpextend !cast<ValueType>(type):$a)),
18901890 f32:$b))]>,
18911891 Requires<[hasSM<100>, hasPTX<86>]>;
18921892 }
0 commit comments