; RUN: llc < %s -march=thumb -mattr=+thumb2 | Filecheck %s
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32"
target triple = "thumb2-unknown-unknown"

define i32 @divu(i32 %n, i32 %d) nounwind {
	%t1 = udiv i32 %n, %d
	ret i32 %t1
}
; CHECK: divu:
; CHECK:	udiv	r0, r0, r1

define i32 @divs(i32 %n, i32 %d) nounwind {
	%t1 = sdiv i32 %n, %d
	ret i32 %t1
}
; CHECK: divs:
; CHECK:	sdiv	r0, r0, r1

