1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc < %s -mtriple=aarch64-- -verify-machineinstrs | FileCheck %s
4 ; Don't fold freeze(assertsext(x)) -> assertsext(freeze(x))
5 define i32 @PR66603(double %x) nounwind {
6 ; CHECK-LABEL: PR66603:
8 ; CHECK-NEXT: fcvtzs w8, d0
9 ; CHECK-NEXT: sxtb w0, w8
11 %as_i8 = fptosi double %x to i8
12 %frozen_i8 = freeze i8 %as_i8
13 %ext = sext i8 %frozen_i8 to i32