Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=arm64 -aarch64-neon-syntax=apple | FileCheck %s |
| 2 | |
| 3 | ; CHECK: fptosi_1 |
| 4 | ; CHECK: fcvtzs.2d |
| 5 | ; CHECK: xtn.2s |
| 6 | ; CHECK: ret |
Tim Northover | ce6538c | 2014-05-30 08:59:55 +0000 | [diff] [blame] | 7 | define void @fptosi_1(<2 x double> %in, <2 x i32>* %addr) nounwind noinline ssp { |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 8 | entry: |
Tim Northover | ce6538c | 2014-05-30 08:59:55 +0000 | [diff] [blame] | 9 | %0 = fptosi <2 x double> %in to <2 x i32> |
| 10 | store <2 x i32> %0, <2 x i32>* %addr, align 8 |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 11 | ret void |
| 12 | } |
| 13 | |
| 14 | ; CHECK: fptoui_1 |
| 15 | ; CHECK: fcvtzu.2d |
| 16 | ; CHECK: xtn.2s |
| 17 | ; CHECK: ret |
Tim Northover | ce6538c | 2014-05-30 08:59:55 +0000 | [diff] [blame] | 18 | define void @fptoui_1(<2 x double> %in, <2 x i32>* %addr) nounwind noinline ssp { |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 19 | entry: |
Tim Northover | ce6538c | 2014-05-30 08:59:55 +0000 | [diff] [blame] | 20 | %0 = fptoui <2 x double> %in to <2 x i32> |
| 21 | store <2 x i32> %0, <2 x i32>* %addr, align 8 |
Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 22 | ret void |
| 23 | } |
| 24 | |