Craig Topper | f87a2be | 2011-11-09 09:37:21 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core-avx2 -mattr=+avx2 | FileCheck %s |
| 2 | |
| 3 | ; CHECK: vpandn %ymm |
| 4 | define <4 x i64> @vpandn(<4 x i64> %a, <4 x i64> %b) nounwind uwtable readnone ssp { |
| 5 | entry: |
| 6 | ; Force the execution domain with an add. |
| 7 | %a2 = add <4 x i64> %a, <i64 1, i64 1, i64 1, i64 1> |
| 8 | %y = xor <4 x i64> %a2, <i64 -1, i64 -1, i64 -1, i64 -1> |
| 9 | %x = and <4 x i64> %a, %y |
| 10 | ret <4 x i64> %x |
| 11 | } |
| 12 | |
| 13 | ; CHECK: vpand %ymm |
| 14 | define <4 x i64> @vpand(<4 x i64> %a, <4 x i64> %b) nounwind uwtable readnone ssp { |
| 15 | entry: |
| 16 | ; Force the execution domain with an add. |
| 17 | %a2 = add <4 x i64> %a, <i64 1, i64 1, i64 1, i64 1> |
| 18 | %x = and <4 x i64> %a2, %b |
| 19 | ret <4 x i64> %x |
| 20 | } |
| 21 | |
| 22 | ; CHECK: vpor %ymm |
| 23 | define <4 x i64> @vpor(<4 x i64> %a, <4 x i64> %b) nounwind uwtable readnone ssp { |
| 24 | entry: |
| 25 | ; Force the execution domain with an add. |
| 26 | %a2 = add <4 x i64> %a, <i64 1, i64 1, i64 1, i64 1> |
| 27 | %x = or <4 x i64> %a2, %b |
| 28 | ret <4 x i64> %x |
| 29 | } |
| 30 | |
| 31 | ; CHECK: vpxor %ymm |
| 32 | define <4 x i64> @vpxor(<4 x i64> %a, <4 x i64> %b) nounwind uwtable readnone ssp { |
| 33 | entry: |
| 34 | ; Force the execution domain with an add. |
| 35 | %a2 = add <4 x i64> %a, <i64 1, i64 1, i64 1, i64 1> |
| 36 | %x = xor <4 x i64> %a2, %b |
| 37 | ret <4 x i64> %x |
| 38 | } |