1; RUN: llc -mtriple=aarch64 < %s | FileCheck %s 2 3define i64 @GetFpcr() { 4; CHECK-LABEL: GetFpcr 5; CHECK: mrs x0, FPCR 6; CHECK: ret 7 %1 = tail call i64 @llvm.aarch64.get.fpcr() 8 ret i64 %1 9} 10 11declare i64 @llvm.aarch64.get.fpcr() #0 12 13define i32 @GetFltRounds() { 14; CHECK-LABEL: GetFltRounds 15; CHECK: mrs x8, FPCR 16; CHECK: add w8, w8, #1024, lsl #12 17; CHECK: ubfx w0, w8, #22, #2 18; CHECK: ret 19 %1 = tail call i32 @llvm.flt.rounds() 20 ret i32 %1 21} 22 23declare i32 @llvm.flt.rounds() #0 24