1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=armv5te | FileCheck %s --check-prefix=V5 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=armv6 | FileCheck %s --check-prefix=V6 3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=armv6t2 | FileCheck %s --check-prefix=V6T2 4*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=armv7 | FileCheck %s --check-prefix=V7 5*9880d681SAndroid Build Coastguard Worker; PR18364 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workerdefine i64 @f() #0 { 8*9880d681SAndroid Build Coastguard Workerentry: 9*9880d681SAndroid Build Coastguard Worker; V5-NOT: movw 10*9880d681SAndroid Build Coastguard Worker; V6-NOT: movw 11*9880d681SAndroid Build Coastguard Worker; V6T2: movw 12*9880d681SAndroid Build Coastguard Worker; V7: movw 13*9880d681SAndroid Build Coastguard Worker %y = alloca i64, align 8 14*9880d681SAndroid Build Coastguard Worker %z = alloca i64, align 8 15*9880d681SAndroid Build Coastguard Worker store i64 1, i64* %y, align 8 16*9880d681SAndroid Build Coastguard Worker store i64 11579764786944, i64* %z, align 8 17*9880d681SAndroid Build Coastguard Worker %0 = load i64, i64* %y, align 8 18*9880d681SAndroid Build Coastguard Worker %1 = load i64, i64* %z, align 8 19*9880d681SAndroid Build Coastguard Worker %sub = sub i64 %0, %1 20*9880d681SAndroid Build Coastguard Worker ret i64 %sub 21*9880d681SAndroid Build Coastguard Worker} 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Workerdefine i64 @g(i64 %a, i32 %b) #0 { 24*9880d681SAndroid Build Coastguard Workerentry: 25*9880d681SAndroid Build Coastguard Worker; V5-NOT: movw 26*9880d681SAndroid Build Coastguard Worker; V6-NOT: movw 27*9880d681SAndroid Build Coastguard Worker; V6T2: movw 28*9880d681SAndroid Build Coastguard Worker; V7: movw 29*9880d681SAndroid Build Coastguard Worker %0 = mul i64 %a, 86400000 30*9880d681SAndroid Build Coastguard Worker %mul = add i64 %0, -210866803200000 31*9880d681SAndroid Build Coastguard Worker %conv = sext i32 %b to i64 32*9880d681SAndroid Build Coastguard Worker %add = add nsw i64 %mul, %conv 33*9880d681SAndroid Build Coastguard Worker ret i64 %add 34*9880d681SAndroid Build Coastguard Worker} 35