; Smoke test: confirm llc accepts the W65816 target via lit.
; RUN: llc -mtriple=w65816 -O2 < %s | FileCheck %s

define i16 @add_i16(i16 %a, i16 %b) {
; CHECK-LABEL: add_i16:
; CHECK:       rep #0x30
; CHECK:       clc
; CHECK:       adc 0x4, s
; CHECK:       rtl
  %r = add i16 %a, %b
  ret i16 %r
}
