File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ pub(crate) fn codegen_llvm_intrinsic_call<'tcx>(
52
52
ret. write_cvalue( fx, res) ;
53
53
} ;
54
54
"llvm.x86.sse2.cmp.ps" | "llvm.x86.sse2.cmp.pd" , ( c x, c y, o kind) {
55
- let kind_const = crate :: constant:: mir_operand_get_const_val( fx, kind) . expect( "llvm.x86.sse2.cmp.* kind not const" ) ;
56
- let flt_cc = match kind_const . try_to_bits( Size :: from_bytes( 1 ) ) . unwrap_or_else( || panic!( "kind not scalar: {:?}" , kind_const ) ) {
55
+ let kind = crate :: constant:: mir_operand_get_const_val( fx, kind) . expect( "llvm.x86.sse2.cmp.* kind not const" ) ;
56
+ let flt_cc = match kind . try_to_bits( Size :: from_bytes( 1 ) ) . unwrap_or_else( || panic!( "kind not scalar: {:?}" , kind ) ) {
57
57
0 => FloatCC :: Equal ,
58
58
1 => FloatCC :: LessThan ,
59
59
2 => FloatCC :: LessThanOrEqual ,
Original file line number Diff line number Diff line change @@ -31,14 +31,12 @@ macro intrinsic_pat {
31
31
}
32
32
33
33
macro intrinsic_arg {
34
- ( o $fx: expr, $arg: ident) => {
35
- $arg
36
- } ,
34
+ ( o $fx: expr, $arg: ident) => { } ,
37
35
( c $fx: expr, $arg: ident) => {
38
- codegen_operand ( $fx, $arg)
36
+ let $arg = codegen_operand ( $fx, $arg) ;
39
37
} ,
40
38
( v $fx: expr, $arg: ident) => {
41
- codegen_operand ( $fx, $arg) . load_scalar ( $fx)
39
+ let $arg = codegen_operand ( $fx, $arg) . load_scalar ( $fx) ;
42
40
}
43
41
}
44
42
@@ -52,9 +50,7 @@ macro intrinsic_match {
52
50
$(
53
51
$( intrinsic_pat ! ( $( $name) . * ) ) |* $( if $cond) ? => {
54
52
if let [ $( $arg) , * ] = $args {
55
- let ( $( $arg, ) * ) = (
56
- $( intrinsic_arg ! ( $a $fx, $arg) , ) *
57
- ) ;
53
+ $( intrinsic_arg ! ( $a $fx, $arg) ; ) *
58
54
$content
59
55
} else {
60
56
bug!( "wrong number of args for intrinsic {:?}" , $intrinsic) ;
You can’t perform that action at this time.
0 commit comments