summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/swiftcc.ll
blob: 432495427152e82c523e37226763c93ee4244df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc -verify-machineinstrs -mtriple=aarch64-apple-ios -o - %s | FileCheck %s
; RUN: llc -O0 -verify-machineinstrs -mtriple=aarch64-apple-ios -o - %s | FileCheck %s

; CHECK: t1
; CHECK: fadd s0, s0, s1
; CHECK: ret
define swiftcc float @t1(float %a, float %b) {
entry:
  %add = fadd float %a, %b
  ret float %add
}