llvm.org GIT mirror llvm / 457d53d
Revert the wrong part of r139528, and fix testcases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139541 91177308-0d34-0410-b5e6-96231b3b80d8 Bruno Cardoso Lopes 8 years ago
3 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
84578457 default: break;
84588458 case ISD::SETOEQ:
84598459 case ISD::SETEQ: SSECC = 0; break;
8460 case ISD::SETOGT:
8461 case ISD::SETGT: Swap = true; // Fallthrough
8462 case ISD::SETLT:
8463 case ISD::SETOLT: SSECC = 1; break;
84608464 case ISD::SETOGE:
84618465 case ISD::SETGE: Swap = true; // Fallthrough
8462 case ISD::SETLT:
8463 case ISD::SETOLT: SSECC = 1; break;
8464 case ISD::SETOGT:
8465 case ISD::SETGT: Swap = true; // Fallthrough
84668466 case ISD::SETLE:
84678467 case ISD::SETOLE: SSECC = 2; break;
84688468 case ISD::SETUO: SSECC = 3; break;
8484 ;; TEST blend + compares
8585 ; CHECK: A
8686 define <2 x double> @A(<2 x double> %x, <2 x double> %y) {
87 ; CHECK: vcmpltpd
87 ; CHECK: vcmplepd
8888 ; CHECK: vblendvpd
8989 %max_is_x = fcmp oge <2 x double> %x, %y
9090 %max = select <2 x i1> %max_is_x, <2 x double> %x, <2 x double> %y
9393
9494 ; CHECK: B
9595 define <2 x double> @B(<2 x double> %x, <2 x double> %y) {
96 ; CHECK: vcmplepd
96 ; CHECK: vcmpltpd
9797 ; CHECK: vblendvpd
9898 %max_is_x = fcmp ogt <2 x double> %x, %y
9999 %max = select <2 x i1> %max_is_x, <2 x double> %x, <2 x double> %y
4646 ;; TEST blend + compares
4747 ; CHECK: A
4848 define <2 x double> @A(<2 x double> %x, <2 x double> %y) {
49 ; CHECK: cmpltpd
49 ; CHECK: cmplepd
5050 ; CHECK: blendvpd
5151 %max_is_x = fcmp oge <2 x double> %x, %y
5252 %max = select <2 x i1> %max_is_x, <2 x double> %x, <2 x double> %y
5555
5656 ; CHECK: B
5757 define <2 x double> @B(<2 x double> %x, <2 x double> %y) {
58 ; CHECK: cmplepd
58 ; CHECK: cmpltpd
5959 ; CHECK: blendvpd
6060 %max_is_x = fcmp ogt <2 x double> %x, %y
6161 %max = select <2 x i1> %max_is_x, <2 x double> %x, <2 x double> %y